From: Sarah Hoffmann Date: Mon, 21 Sep 2020 08:39:14 +0000 (+0200) Subject: remove dead code X-Git-Tag: v3.6.0~71^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f8a5f2964fb4fdcaa774f1149dc6007012af3a2a?ds=inline;hp=-c remove dead code The SQL query has moved into the addTokensFromDB() funtion. --- f8a5f2964fb4fdcaa774f1149dc6007012af3a2a diff --git a/lib/Geocode.php b/lib/Geocode.php index 0c93e0a9..bc81bced 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -642,12 +642,6 @@ class Geocode $oValidTokens = new TokenList(); if (!empty($aTokens)) { - $sSQL = 'SELECT word_id, word_token, word, class, type, country_code, operator, search_name_count'; - $sSQL .= ' FROM word '; - $sSQL .= ' WHERE word_token in ('.join(',', $this->oDB->getDBQuotedList($aTokens)).')'; - - Debug::printSQL($sSQL); - $oValidTokens->addTokensFromDB( $this->oDB, $aTokens,