From 9ef2370a2a6e6383b2e166896bfa379e5faff485 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 13 Oct 2017 21:34:13 +0200 Subject: [PATCH] remove unused $aPossibleMainWordIDs array --- lib/Geocode.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index bf0782f1..9115be0b 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -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); -- 2.39.5