]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/refresh.py
move filling of postcode table to python
[nominatim.git] / nominatim / tools / refresh.py
index 6720465fd9220387781b8df939742a1aee482a0e..805bd6348543de46b4ca8bf3f7dc0643e3389397 100644 (file)
@@ -13,12 +13,6 @@ from nominatim.version import NOMINATIM_VERSION
 
 LOG = logging.getLogger()
 
-def update_postcodes(dsn, sql_dir):
-    """ Recalculate postcode centroids and add, remove and update entries in the
-        location_postcode table. `conn` is an opne connection to the database.
-    """
-    execute_file(dsn, sql_dir / 'update-postcodes.sql')
-
 
 def recompute_word_counts(dsn, sql_dir):
     """ Compute the frequency of full-word search terms.