got rid of a few unused variable warnings

This commit is contained in:
Jean-Francois Dockes
2019-04-11 15:31:27 +02:00
parent 9e61f25b17
commit 34bb62a8d9
5 changed files with 5 additions and 7 deletions
-2
View File
@@ -344,8 +344,6 @@ int Query::Native::abstractFromText(
Chrono&
)
{
Xapian::Database& xrdb(ndb->xrdb);
string rawtext;
if (!ndb->getRawText(docid, rawtext)) {
LOGDEB0("abstractFromText: can't fetch text\n");
-1
View File
@@ -636,7 +636,6 @@ int Query::Native::makeAbstract(Xapian::docid docid,
}
Rcl::Db::Native *ndb(m_q->m_db->m_ndb);
Xapian::Database& xrdb(ndb->xrdb);
// Total number of slots we populate. The 7 is taken as
// average word size. It was a mistake to have the user max
+1 -1
View File
@@ -374,7 +374,7 @@ bool Db::Native::idxTermMatch_p(
Xapian::TermIterator it = xdb.allterms_begin();
if (!is.empty())
it.skip_to(is.c_str());
for (int rcnt = 0; it != xdb.allterms_end(); it++) {
for (; it != xdb.allterms_end(); it++) {
const string ixterm{*it};
// If we're beyond the terms matching the initial
// section, end