diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-03-29 13:48:01 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-03-29 13:48:01 +0100 |
| commit | 7dd05d675c8abcfc8da802ef6899ce4df5139489 (patch) | |
| tree | fb94f12204f0fc8d66e1aeb7278c5dde2099f766 /src | |
| parent | 94f4531bc8cd7f4fc94df823ef6f6d398bf113a7 (diff) | |
RankedMatch constructor handles empty query just fine
Diffstat (limited to 'src')
| -rw-r--r-- | src/word_db.cc | 6 |
1 files changed, 0 insertions, 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); } |
