From 2da4b41c63e93f48ddb1f48020977700844a0630 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Tue, 13 Aug 2019 15:48:50 +0100 Subject: Remove obsolete function Signed-off-by: Olivier Wilkinson (reivilibre) --- synapse/storage/stats.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'synapse/storage') diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py index b1df526b54..73b624e9f4 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py @@ -627,21 +627,6 @@ class StatsStore(StateDeltasStore): txn.execute(sql, (room_id, low_token, high_token)) return txn.fetchone()[0] - def delete_all_stats(self): - """ - Delete all statistics records. - TODO obsolete? - TODO at least will need updating - """ - - def _delete_all_stats_txn(txn): - txn.execute("DELETE FROM room_state") - txn.execute("DELETE FROM room_stats") - txn.execute("DELETE FROM room_stats_earliest_token") - txn.execute("DELETE FROM user_stats") - - return self.runInteraction("delete_all_stats", _delete_all_stats_txn) - def get_stats_positions(self, for_initial_processor=False): """ Returns the stats processor positions. -- cgit 1.5.1