From 108a33f16e51b425f6fbf502ff0b824846f5b608 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 15 Feb 2021 21:43:47 +0200 Subject: [PATCH] query: avoid expected warning Remove some debug leftover. --- lib/mu-query.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/mu-query.cc b/lib/mu-query.cc index b98f77ac..1b337a09 100644 --- a/lib/mu-query.cc +++ b/lib/mu-query.cc @@ -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_;