summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-08-27 11:34:31 +0100
committerMark Haines <mark.haines@matrix.org>2014-08-27 11:34:31 +0100
commit474dcecb1166440aa0e207aa978b9a822460f5bc (patch)
tree537e637687aee2b0132252e0b1eccf50542d3824 /synapse/storage
parentMerge branch 'develop' into storage_transactions (diff)
downloadsynapse-474dcecb1166440aa0e207aa978b9a822460f5bc.tar.xz
Remove unused populate_previous_pdus
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/pdu.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/storage/pdu.py b/synapse/storage/pdu.py
index 657295b1d7..9fd44f2454 100644
--- a/synapse/storage/pdu.py
+++ b/synapse/storage/pdu.py
@@ -276,7 +276,7 @@ class PduStore(SQLBaseStore):
                 (context, depth)
             )
 
-    def get_latest_pdus_in_context(self, context):
+    def _get_latest_pdus_in_context(self, txn, context):
         """Get's a list of the most current pdus for a given context. This is
         used when we are sending a Pdu and need to fill out the `prev_pdus`
         key
@@ -285,11 +285,6 @@ class PduStore(SQLBaseStore):
             txn
             context
         """
-        return self._db_pool.runInteraction(
-            self._get_latest_pdus_in_context, context
-        )
-
-    def _get_latest_pdus_in_context(self, txn, context):
         query = (
             "SELECT p.pdu_id, p.origin, p.depth FROM %(pdus)s as p "
             "INNER JOIN %(forward)s as f ON p.pdu_id = f.pdu_id "