From eda494153ee9cbe666195627692157d719f13366 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 5 Oct 2011 17:25:35 +0200 Subject: [PATCH] simplify calls to isStop --- src/rcldb/rcldb.cpp | 4 ++-- src/rcldb/searchdata.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index ee595319..7bc066f9 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -766,7 +766,7 @@ int Db::termDocCnt(const string& _term) return 0; } - if (m_stops.hasStops() && m_stops.isStop(term)) { + if (m_stops.isStop(term)) { LOGDEB1(("Db::termDocCnt [%s] in stop list\n", term.c_str())); return 0; } @@ -942,7 +942,7 @@ bool TextSplitDb::takeword(const std::string &_term, int pos, int, int) return true; } - if (stops.hasStops() && stops.isStop(term)) { + if (stops.isStop(term)) { LOGDEB1(("Db: takeword [%s] in stop list\n", term.c_str())); return true; } diff --git a/src/rcldb/searchdata.cpp b/src/rcldb/searchdata.cpp index 77d60748..0208f63b 100644 --- a/src/rcldb/searchdata.cpp +++ b/src/rcldb/searchdata.cpp @@ -494,7 +494,7 @@ class TextSplitQ : public TextSplit { return true; } - if (stops.hasStops() && stops.isStop(noaclowterm)) { + if (stops.isStop(noaclowterm)) { LOGDEB1(("TextSplitQ::takeword [%s] in stop list\n", noaclowterm.c_str())); return true;