]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
remove unused $aPossibleMainWordIDs array
[nominatim.git] / lib / Geocode.php
index bf0782f1430d4ba858c88e81abaa5578c55832ca..9115be0b3e333c3c6f08fdbbcac97b254fe3b72d 100644 (file)
@@ -989,7 +989,6 @@ class Geocode
                     $this->oDB->getAll($sSQL),
                     "Could not get word tokens."
                 );
-                $aPossibleMainWordIDs = array();
                 $aWordFrequencyScores = array();
                 foreach ($aDatabaseWords as $aToken) {
                     // Very special case - require 2 letter country param to match the country code found
@@ -1004,7 +1003,6 @@ class Geocode
                     } else {
                         $aValidTokens[$aToken['word_token']] = array($aToken);
                     }
-                    if (!$aToken['class'] && !$aToken['country_code']) $aPossibleMainWordIDs[$aToken['word_id']] = 1;
                     $aWordFrequencyScores[$aToken['word_id']] = $aToken['search_name_count'] + 1;
                 }
                 if (CONST_Debug) var_Dump($aPhrases, $aValidTokens);