changeset 4975:fc330376d50b

Xapian2009: xapian_called attribute was removed. It is only set but not used.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Tue, 04 Aug 2009 15:23:42 +0200
parents eb5644419456
children 8df5d749cf2d
files MoinMoin/search/queryparser.py
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/queryparser.py	Mon Aug 03 19:23:54 2009 +0200
+++ b/MoinMoin/search/queryparser.py	Tue Aug 04 15:23:42 2009 +0200
@@ -648,7 +648,6 @@
         self.negated = 0
         self.use_re = use_re
         self.case = False       # not case-sensitive!
-        self.xapian_called = False
         self._build_re(self._pattern, use_re=use_re, case=case)
 
         self._tag = 'language:'
@@ -697,7 +696,6 @@
         return False # case-sensitivity would make no sense
 
     def xapian_term(self, request, allterms):
-        self.xapian_called = True
         prefix = Xapian.Index.prefixMap['lang']
         if self.use_re:
             # basic regex matching per term
@@ -758,7 +756,6 @@
         return self.case
 
     def xapian_term(self, request, allterms):
-        self.xapian_called = True
         prefix = Xapian.Index.prefixMap['category']
         if self.use_re:
             # basic regex matching per term
@@ -795,7 +792,6 @@
         self.negated = 0
         self.use_re = use_re
         self.case = False # not case-sensitive!
-        self.xapian_called = False
         self._build_re(self._pattern, use_re=use_re, case=case)
 
         self._tag = 'mimetype:'
@@ -825,7 +821,6 @@
         return False # case-sensitivity would make no sense
 
     def xapian_term(self, request, allterms):
-        self.xapian_called = True
         prefix = Xapian.Index.prefixMap['mimetype']
         if self.use_re:
             # basic regex matching per term
@@ -862,7 +857,6 @@
         self.negated = 0
         self.use_re = use_re
         self.case = False # not case-sensitive!
-        self.xapian_called = False
         self._build_re(self._pattern, use_re=use_re, case=case)
 
         self._tag = 'domain:'
@@ -910,7 +904,6 @@
         return False # case-sensitivity would make no sense
 
     def xapian_term(self, request, allterms):
-        self.xapian_called = True
         prefix = Xapian.Index.prefixMap['domain']
         if self.use_re:
             # basic regex matching per term