Commit 65dcc147 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove dead code.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27059 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 638fc1a5
......@@ -69,12 +69,6 @@ class SimpleQuery(Query):
# Backward compatibility code (those changes should not be needed when
# this Query is instanciated by a SearchKey, as operator should be correct
# already).
if len(kw) == 2 and 'operator' in kw:
operator = kw.pop('operator')
if comparison_operator not in (None, operator):
LOG('SimpleQuery', WARNING, 'Both "operator" and "comparison_operator" are provided, ignoring "operator".')
else:
comparison_operator = operator
comparison_operator = comparison_operator.lower()
if comparison_operator == 'in':
if isinstance(value, (list, tuple)):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment