From cf4dbbd681cfb515a83bd4c1c2cc3f929b952872 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 16 Jan 2020 17:31:31 +0100 Subject: [PATCH 1/1] remove unused function --- sql/functions/utils.sql | 18 ------------------ 1 file changed, 18 deletions(-) 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 $$ -- 2.39.5