summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-03-31 17:24:06 +0100
committerRichard van der Hoff <richard@matrix.org>2020-03-31 17:24:06 +0100
commitcfe8c8ab8e412b6320e5963ced0670fbc7b00d1b (patch)
tree22d3eaed314d21069684b9d26cd95cf2e19ed366 /synapse/storage
parentFix "'NoneType' has no attribute start|stop" logcontext errors (#7181) (diff)
downloadsynapse-cfe8c8ab8e412b6320e5963ced0670fbc7b00d1b.tar.xz
Remove unused `start_background_update`
This was only used in a unit test, so let's just inline it in the test.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/background_updates.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/synapse/storage/background_updates.py b/synapse/storage/background_updates.py
index eb1a7e5002..d4e26eab6c 100644
--- a/synapse/storage/background_updates.py
+++ b/synapse/storage/background_updates.py
@@ -400,27 +400,6 @@ class BackgroundUpdater(object):
 
         self.register_background_update_handler(update_name, updater)
 
-    def start_background_update(self, update_name, progress):
-        """Starts a background update running.
-
-        Args:
-            update_name: The update to set running.
-            progress: The initial state of the progress of the update.
-
-        Returns:
-            A deferred that completes once the task has been added to the
-            queue.
-        """
-        # Clear the background update queue so that we will pick up the new
-        # task on the next iteration of do_background_update.
-        self._background_update_queue = []
-        progress_json = json.dumps(progress)
-
-        return self.db.simple_insert(
-            "background_updates",
-            {"update_name": update_name, "progress_json": progress_json},
-        )
-
     def _end_background_update(self, update_name):
         """Removes a completed background update task from the queue.