Remove a couple more unused methods

This commit is contained in:
Nick Hall 2016-12-08 22:05:05 +00:00
parent d8796d35fb
commit 4e812c738b

View File

@ -966,14 +966,6 @@ class DBAPI(DbGeneric):
"rebuilt, and indexed...", table) "rebuilt, and indexed...", table)
self.update_secondary_values_table(table) self.update_secondary_values_table(table)
def update_secondary_values_all(self):
"""
Go through all items in all tables, and update their secondary
field values.
"""
for table in self.get_table_func():
self.update_secondary_values_table(table)
def update_secondary_values_table(self, table): def update_secondary_values_table(self, table):
""" """
Go through all items in a table, and update their secondary Go through all items in a table, and update their secondary
@ -1029,19 +1021,6 @@ class DBAPI(DbGeneric):
""" """
return [v if not isinstance(v, bool) else int(v) for v in values] return [v if not isinstance(v, bool) else int(v) for v in values]
def _sql_repr(self, value):
"""
Given a Python value, turn it into a SQL value.
"""
if value is True:
return "1"
elif value is False:
return "0"
elif isinstance(value, list):
return repr(tuple(value))
else:
return repr(value)
def get_summary(self): def get_summary(self):
""" """
Returns dictionary of summary item. Returns dictionary of summary item.