From: Sarah Hoffmann Date: Thu, 16 Jan 2020 16:31:31 +0000 (+0100) Subject: remove unused function X-Git-Tag: v3.5.0~96^2~9 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/cf4dbbd681cfb515a83bd4c1c2cc3f929b952872?ds=sidebyside remove unused function --- diff --git a/sql/functions/utils.sql b/sql/functions/utils.sql index 2b0f681b..a682931a 100644 --- a/sql/functions/utils.sql +++ b/sql/functions/utils.sql @@ -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 $$