simplify calls to isStop

This commit is contained in:
Jean-Francois Dockes
2011-10-05 17:25:35 +02:00
parent acb297c9df
commit eda494153e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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;