summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-13 15:48:50 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-13 15:48:50 +0100
commit2da4b41c63e93f48ddb1f48020977700844a0630 (patch)
tree795e96b9cafdc5b60107c09132edc78c59bfc777
parentFix up `stats_separated1.sql` (diff)
downloadsynapse-2da4b41c63e93f48ddb1f48020977700844a0630.tar.xz
Remove obsolete function
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 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.