diff options
author | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-13 15:48:50 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-13 15:48:50 +0100 |
commit | 2da4b41c63e93f48ddb1f48020977700844a0630 (patch) | |
tree | 795e96b9cafdc5b60107c09132edc78c59bfc777 | |
parent | Fix up `stats_separated1.sql` (diff) | |
download | synapse-2da4b41c63e93f48ddb1f48020977700844a0630.tar.xz |
Remove obsolete function
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-rw-r--r-- | synapse/storage/stats.py | 15 |
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. |