Removed unused _combine() node argument from various combinable classes.

Unused since f59fd15c49 (Combinable) and
since its introduction in 2d877da855
(SearchVectorCombinable/SearchQueryCombinable/SearchQuery).
This commit is contained in:
Mariusz Felisiak 2017-08-03 03:21:32 +02:00 committed by Tim Graham
parent d70432deae
commit 7724879b52
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ class SearchQueryField(Field):
class SearchVectorCombinable:
ADD = '||'
def _combine(self, other, connector, reversed, node=None):
def _combine(self, other, connector, reversed):
if not isinstance(other, SearchVectorCombinable) or not self.config == other.config:
raise TypeError('SearchVector can only be combined with other SearchVectors')
if reversed:
@ -96,7 +96,7 @@ class SearchQueryCombinable:
BITAND = '&&'
BITOR = '||'
def _combine(self, other, connector, reversed, node=None):
def _combine(self, other, connector, reversed):
if not isinstance(other, SearchQueryCombinable):
raise TypeError(
'SearchQuery can only be combined with other SearchQuerys, '
@ -153,8 +153,8 @@ class SearchQuery(SearchQueryCombinable, Value):
template = '!!({})'.format(template)
return template, params
def _combine(self, other, connector, reversed, node=None):
combined = super()._combine(other, connector, reversed, node)
def _combine(self, other, connector, reversed):
combined = super()._combine(other, connector, reversed)
combined.output_field = SearchQueryField()
return combined

View File

@ -34,7 +34,7 @@ class Combinable:
BITLEFTSHIFT = '<<'
BITRIGHTSHIFT = '>>'
def _combine(self, other, connector, reversed, node=None):
def _combine(self, other, connector, reversed):
if not hasattr(other, 'resolve_expression'):
# everything must be resolvable to an expression
if isinstance(other, datetime.timedelta):