Removes unused functions
This commit is contained in:
@@ -1,25 +1,6 @@
|
||||
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION
|
||||
\echo Use "CREATE EXTENSION cdb_geocoder_server" to load this file. \quit
|
||||
-- Check if a given host is up by performing a ping -c 1 call.
|
||||
CREATE OR REPLACE FUNCTION cdb_geocoder_server._check_host(hostname TEXT)
|
||||
RETURNS BOOLEAN
|
||||
AS $$
|
||||
import os
|
||||
|
||||
response = os.system("ping -c 1 " + hostname)
|
||||
|
||||
return False if response else True
|
||||
$$ LANGUAGE plpythonu VOLATILE;
|
||||
|
||||
-- Returns current pwd
|
||||
CREATE OR REPLACE FUNCTION cdb_geocoder_server._pwd()
|
||||
RETURNS TEXT
|
||||
AS $$
|
||||
import os
|
||||
|
||||
return os.getcwd()
|
||||
$$ LANGUAGE plpythonu VOLATILE;
|
||||
-- Check if a given host is up by performing a ping -c 1 call.
|
||||
CREATE OR REPLACE FUNCTION cdb_geocoder_server.geocode_street(searchtext TEXT, state TEXT DEFAULT NULL, country TEXT DEFAULT NULL)
|
||||
RETURNS Geometry
|
||||
AS $$
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
-- Check that check_host is working
|
||||
select cdb_geocoder_server._check_host('cartodb.com');
|
||||
_check_host
|
||||
-------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
-- Check that check_pwd is working
|
||||
select cdb_geocoder_server._pwd();
|
||||
_pwd
|
||||
------------------------------
|
||||
/var/lib/postgresql/9.3/main
|
||||
(1 row)
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
-- Check if a given host is up by performing a ping -c 1 call.
|
||||
CREATE OR REPLACE FUNCTION cdb_geocoder_server._check_host(hostname TEXT)
|
||||
RETURNS BOOLEAN
|
||||
AS $$
|
||||
import os
|
||||
|
||||
response = os.system("ping -c 1 " + hostname)
|
||||
|
||||
return False if response else True
|
||||
$$ LANGUAGE plpythonu VOLATILE;
|
||||
|
||||
-- Returns current pwd
|
||||
CREATE OR REPLACE FUNCTION cdb_geocoder_server._pwd()
|
||||
RETURNS TEXT
|
||||
AS $$
|
||||
import os
|
||||
|
||||
return os.getcwd()
|
||||
$$ LANGUAGE plpythonu VOLATILE;
|
||||
@@ -1,5 +0,0 @@
|
||||
-- Check that check_host is working
|
||||
select cdb_geocoder_server._check_host('cartodb.com');
|
||||
|
||||
-- Check that check_pwd is working
|
||||
select cdb_geocoder_server._pwd();
|
||||
Reference in New Issue
Block a user