]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove unused function
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 16 Jan 2020 16:31:31 +0000 (17:31 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 23 Jan 2020 21:28:43 +0000 (22:28 +0100)
sql/functions/utils.sql

index 2b0f681bf35e42486ac4621c6d68e69002ea84bd..a682931a1485fd61fd1f9e4f201e72eeba3caeeb 100644 (file)
@@ -223,24 +223,6 @@ $$
 LANGUAGE plpgsql STABLE;
 
 
-CREATE OR REPLACE FUNCTION get_country_language_codes(search_country_code VARCHAR(2))
-  RETURNS TEXT[]
-  AS $$
-DECLARE
-  nearcountry RECORD;
-BEGIN
-  FOR nearcountry IN
-    SELECT country_default_language_codes from country_name
-    WHERE country_code = search_country_code limit 1
-  LOOP
-    RETURN lower(nearcountry.country_default_language_codes);
-  END LOOP;
-  RETURN NULL;
-END;
-$$
-LANGUAGE plpgsql STABLE;
-
-
 CREATE OR REPLACE FUNCTION get_partition(in_country_code VARCHAR(10))
   RETURNS INTEGER
   AS $$