query: avoid expected warning

Remove some debug leftover.
This commit is contained in:
Dirk-Jan C. Binnema 2021-02-15 21:43:47 +02:00
parent 579f841bdd
commit 108a33f16e
1 changed files with 0 additions and 2 deletions

View File

@ -121,8 +121,6 @@ struct ThreadKeyMaker: public Xapian::KeyMaker {
ThreadKeyMaker (const QueryMatches& matches): match_info_(matches) {}
std::string operator()(const Xapian::Document& doc) const override {
const auto it{match_info_.find(doc.get_docid())};
if (it == match_info_.end())
g_warning ("not found! %u", doc.get_docid());
return (it == match_info_.end()) ? "" : it->second.thread_path;
}
const QueryMatches& match_info_;