From e1cef3de0a1671e38185bac00f8a49026a3a56ee Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 19 Jul 2025 15:14:23 +0200 Subject: [PATCH] remove unused code --- src/nominatim_db/tools/refresh.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/nominatim_db/tools/refresh.py b/src/nominatim_db/tools/refresh.py index 660f0653..84d40256 100644 --- a/src/nominatim_db/tools/refresh.py +++ b/src/nominatim_db/tools/refresh.py @@ -7,7 +7,7 @@ """ Functions for bringing auxiliary data in the database up-to-date. """ -from typing import MutableSequence, Tuple, Any, Type, Mapping, Sequence, List, cast +from typing import MutableSequence, Tuple, Any, Mapping, Sequence, List import csv import gzip import logging @@ -222,26 +222,6 @@ def recompute_importance(conn: Connection) -> None: conn.commit() -def _quote_php_variable(var_type: Type[Any], config: Configuration, - conf_name: str) -> str: - if var_type == bool: - return 'true' if config.get_bool(conf_name) else 'false' - - if var_type == int: - return cast(str, getattr(config, conf_name)) - - if not getattr(config, conf_name): - return 'false' - - if var_type == Path: - value = str(config.get_path(conf_name) or '') - else: - value = getattr(config, conf_name) - - quoted = value.replace("'", "\\'") - return f"'{quoted}'" - - def invalidate_osm_object(osm_type: str, osm_id: int, conn: Connection, recursive: bool = True) -> None: """ Mark the given OSM object for reindexing. When 'recursive' is set -- 2.39.5