summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-08 11:48:23 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-08 11:48:23 +0100
commit69234072d3fe6cb2a0a63cd9b0d2ee682aa108b1 (patch)
tree1b877c01fffd873117585d525e32470ec785c17c
parentIntroduce `get_room_state`; a way to get state for a single room (diff)
downloadsynapse-69234072d3fe6cb2a0a63cd9b0d2ee682aa108b1.tar.xz
Remove obsolete functions for updating stats absolutely.
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-rw-r--r--synapse/storage/stats.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py
index 63f0fc5314..d60e6fb7d8 100644
--- a/synapse/storage/stats.py
+++ b/synapse/storage/stats.py
@@ -782,21 +782,6 @@ class StatsStore(StateDeltasStore):
             allow_none=True,
         )
 
-    def update_stats(self, stats_type, stats_id, ts, fields):
-        table, id_col = TYPE_TO_TABLE[stats_type]
-        return self._simple_upsert(
-            table=table,
-            keyvalues={id_col: stats_id, "ts": ts},
-            values=fields,
-            desc="update_stats",
-        )
-
-    def _update_stats_txn(self, txn, stats_type, stats_id, ts, fields):
-        table, id_col = TYPE_TO_TABLE[stats_type]
-        return self._simple_upsert_txn(
-            txn, table=table, keyvalues={id_col: stats_id, "ts": ts}, values=fields
-        )
-
     def _collect_old_txn(self, txn, stats_type, limit=500):
         # we do them in batches to prevent concurrent updates from
         # messing us over with lots of retries