summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-09-23 10:30:38 +0100
committerMark Haines <mark.haines@matrix.org>2015-09-23 10:30:38 +0100
commit396834f1c010899cae87aac45143bbd9911adb4f (patch)
tree087b34d2dbc53fc6029158d826141b216daad6f8 /synapse/storage
parentsynapse/storage/_base.py:_simple_delete was unused (diff)
downloadsynapse-396834f1c010899cae87aac45143bbd9911adb4f.tar.xz
synapse/storage/_base.py:_simple_max_id was unused
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/_base.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 33751f3092..693784ad38 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -715,24 +715,6 @@ class SQLBaseStore(object):
 
         return txn.execute(sql, keyvalues.values())
 
-    def _simple_max_id(self, table):
-        """Executes a SELECT query on the named table, expecting to return the
-        max value for the column "id".
-
-        Args:
-            table : string giving the table name
-        """
-        sql = "SELECT MAX(id) AS id FROM %s" % table
-
-        def func(txn):
-            txn.execute(sql)
-            max_id = self.cursor_to_dict(txn)[0]["id"]
-            if max_id is None:
-                return 0
-            return max_id
-
-        return self.runInteraction("_simple_max_id", func)
-
     def get_next_stream_id(self):
         with self._next_stream_id_lock:
             i = self._next_stream_id