From 4e812c738b71ae8ca36b57ec302061865a54a9c6 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 8 Dec 2016 22:05:05 +0000 Subject: [PATCH] Remove a couple more unused methods --- gramps/plugins/db/dbapi/dbapi.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/gramps/plugins/db/dbapi/dbapi.py b/gramps/plugins/db/dbapi/dbapi.py index 8d3edb3f2..5d55c5faf 100644 --- a/gramps/plugins/db/dbapi/dbapi.py +++ b/gramps/plugins/db/dbapi/dbapi.py @@ -966,14 +966,6 @@ class DBAPI(DbGeneric): "rebuilt, and indexed...", 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): """ 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] - 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): """ Returns dictionary of summary item.