Skip to content

Commit

Permalink
Got rid of unused methods and code not reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
aalises committed Nov 6, 2018
1 parent 06a148d commit d2f8718
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions api/models/civilization.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,4 @@ def parse_array_field(self, field):
out.append('{}unit/{}'.format(request.url_root, self.format_name_to_query(unit.name)))
elif technology:
out.append('{}technology/{}'.format(request.url_root, self.format_name_to_query(technology.name)))
else:
out.append(item)
return out
4 changes: 0 additions & 4 deletions api/models/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,3 @@ def find_by_name(cls, name):
def format_name_to_display(cls, name):
formatted_name = name.replace("_", " ").replace("-", " ").split()
return " ".join([x.capitalize() for x in formatted_name])

def format_name_to_query(self, name):
formatted_name = name.replace(" ", "_").replace(" ", "_").split()
return "_".join([x.lower() for x in formatted_name])

0 comments on commit d2f8718

Please sign in to comment.