]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/setup_functions.php
replace database settings with dotenv variant
[nominatim.git] / lib / setup_functions.php
index 43f30a090dfff4939f4f511e786e2615d467c1c1..5aa5919b2e63ec5f768c19d24033796b3441ebb8 100755 (executable)
@@ -14,18 +14,3 @@ function checkInFile($sOSMFile)
         fail('osm-file "' . $aCMDResult['osm-file'] . '" not readable');
     }
 }
-
-function checkModulePresence()
-{
-    // Try accessing the C module, so we know early if something is wrong.
-    // Raises Nominatim\DatabaseError on failure
-
-    $sModulePath = CONST_Database_Module_Path;
-    $sSQL = "CREATE FUNCTION nominatim_test_import_func(text) RETURNS text AS '";
-    $sSQL .= $sModulePath . "/nominatim.so', 'transliteration' LANGUAGE c IMMUTABLE STRICT";
-    $sSQL .= ';DROP FUNCTION nominatim_test_import_func(text);';
-
-    $oDB = new \Nominatim\DB();
-    $oDB->connect();
-    $oDB->exec($sSQL, null, 'Database server failed to load '.$sModulePath.'/nominatim.so module');
-}