From: Sarah Hoffmann Date: Mon, 23 Oct 2023 09:55:18 +0000 (+0200) Subject: remove unused code X-Git-Tag: v4.4.0~88 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/1255efba7fb2b661943f960bde2d63a85152c0c6?ds=sidebyside remove unused code --- diff --git a/nominatim/clicmd/admin.py b/nominatim/clicmd/admin.py index d1ce5ccc..9557dc98 100644 --- a/nominatim/clicmd/admin.py +++ b/nominatim/clicmd/admin.py @@ -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', @@ -57,7 +56,6 @@ class AdminFuncs: 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: diff --git a/nominatim/tools/admin.py b/nominatim/tools/admin.py index 5bc3954b..c37d0811 100644 --- a/nominatim/tools/admin.py +++ b/nominatim/tools/admin.py @@ -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() - \ No newline at end of file