From 69234072d3fe6cb2a0a63cd9b0d2ee682aa108b1 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Thu, 8 Aug 2019 11:48:23 +0100 Subject: Remove obsolete functions for updating stats absolutely. Signed-off-by: Olivier Wilkinson (reivilibre) --- synapse/storage/stats.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'synapse') 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 -- cgit 1.5.1