From 7dd05d675c8abcfc8da802ef6899ce4df5139489 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 29 Mar 2016 13:48:01 +0100 Subject: [PATCH] RankedMatch constructor handles empty query just fine --- src/word_db.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/word_db.cc b/src/word_db.cc index 65685a39..412b5249 100644 --- a/src/word_db.cc +++ b/src/word_db.cc @@ -133,12 +133,6 @@ RankedMatchList WordDB::find_matching(StringView query) RankedMatchList res; for (auto&& word : m_words) { - if (query.empty()) - { - res.push_back(RankedMatch{word.first, query}); - continue; - } - if (RankedMatch match{word.first, word.second.letters, query, letters}) res.push_back(match); }