Remove dead code in logger.py method get_search_results_for_query
The method get_search_results_for_query provides a means to search via a
passed in SQL query. This feature has been unused and dead since its initial
commit back in 2005 (commit e542fff69f
), so just remove it.
This commit is contained in:
parent
65c6a1e7e5
commit
665898864f
1 changed files with 19 additions and 27 deletions
|
@ -671,14 +671,6 @@ class Logger:
|
|||
# Error trying to create a new jid_id. This means there is no log
|
||||
return []
|
||||
|
||||
if False: # query.startswith('SELECT '): # it's SQL query (FIXME)
|
||||
try:
|
||||
self.cur.execute(query)
|
||||
except sqlite.OperationalError as e:
|
||||
results = [('', '', '', '', str(e))]
|
||||
return results
|
||||
|
||||
else: # user just typed something, we search in message column
|
||||
where_sql, jid_tuple = self._build_contact_where(account, jid)
|
||||
like_sql = '%' + query.replace("'", "''") + '%'
|
||||
if year:
|
||||
|
|
Loading…
Add table
Reference in a new issue