Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Oct 23, 2023
1 parent 6ad397d commit 1255efb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions nominatim/clicmd/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class AdminFuncs:
"""

def add_args(self, parser: argparse.ArgumentParser) -> None:
self.parser = parser
group = parser.add_argument_group('Admin tasks')
objs = group.add_mutually_exclusive_group(required=True)
objs.add_argument('--warm', action='store_true',
Expand Down Expand Up @@ -57,7 +56,6 @@ def add_args(self, parser: argparse.ArgumentParser) -> None:
help='Analyse indexing of the given OSM object')
mgroup.add_argument('--place-id', type=int,
help='Analyse indexing of the given Nominatim object')
group = parser.add_argument_group('Arguments for cleaning deleted')


def run(self, args: NominatimArgs) -> int:
Expand Down
1 change: 0 additions & 1 deletion nominatim/tools/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,3 @@ def clean_deleted_relations(config: Configuration, age: str) -> None:
except DataError as exc:
raise UsageError('Invalid PostgreSQL time interval format') from exc
conn.commit()

0 comments on commit 1255efb

Please sign in to comment.