X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/16268f92ccd11f0c11fe07b2a001b197af3a5b92..75e35f383224fb8eab3d9a28b111499c0a670eff:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 48ed0ffb..f92985ba 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -51,14 +51,6 @@ function getDatabaseDate(&$oDB) } -function bySearchRank($a, $b) -{ - if ($a['iSearchRank'] == $b['iSearchRank']) - return strlen($a['sOperator']) + strlen($a['sHouseNumber']) - strlen($b['sOperator']) - strlen($b['sHouseNumber']); - return ($a['iSearchRank'] < $b['iSearchRank']?-1:1); -} - - function byImportance($a, $b) { if ($a['importance'] != $b['importance'])