remove unused code

This commit is contained in:
Sarah Hoffmann
2023-10-23 11:55:18 +02:00
parent 6ad397d4a9
commit 1255efba7f
2 changed files with 0 additions and 3 deletions

View File

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

View File

@@ -104,4 +104,3 @@ def clean_deleted_relations(config: Configuration, age: str) -> None:
except DataError as exc: except DataError as exc:
raise UsageError('Invalid PostgreSQL time interval format') from exc raise UsageError('Invalid PostgreSQL time interval format') from exc
conn.commit() conn.commit()