mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 14:04:14 -04:00
Remove unused populate_previous_pdus
This commit is contained in:
parent
bf05218c4b
commit
474dcecb11
3 changed files with 1 additions and 27 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue