mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Remove unused get_pagination_rows
methods. (#6557)
Remove unused get_pagination_rows methods
This commit is contained in:
parent
3fbe5b7ec3
commit
02553901ce
1
changelog.d/6557.misc
Normal file
1
changelog.d/6557.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Remove unused `get_pagination_rows` methods from `EventSource` classes.
|
@ -50,6 +50,3 @@ class AccountDataEventSource(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
return results, current_stream_id
|
return results, current_stream_id
|
||||||
|
|
||||||
async def get_pagination_rows(self, user, config, key):
|
|
||||||
return [], config.to_id
|
|
||||||
|
@ -1008,15 +1008,3 @@ class RoomEventSource(object):
|
|||||||
|
|
||||||
def get_current_key_for_room(self, room_id):
|
def get_current_key_for_room(self, room_id):
|
||||||
return self.store.get_room_events_max_id(room_id)
|
return self.store.get_room_events_max_id(room_id)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
|
||||||
def get_pagination_rows(self, user, config, key):
|
|
||||||
events, next_key = yield self.store.paginate_room_events(
|
|
||||||
room_id=key,
|
|
||||||
from_key=config.from_key,
|
|
||||||
to_key=config.to_key,
|
|
||||||
direction=config.direction,
|
|
||||||
limit=config.limit,
|
|
||||||
)
|
|
||||||
|
|
||||||
return (events, next_key)
|
|
||||||
|
@ -317,6 +317,3 @@ class TypingNotificationEventSource(object):
|
|||||||
|
|
||||||
def get_current_key(self):
|
def get_current_key(self):
|
||||||
return self.get_typing_handler()._latest_room_serial
|
return self.get_typing_handler()._latest_room_serial
|
||||||
|
|
||||||
def get_pagination_rows(self, user, pagination_config, key):
|
|
||||||
return [], pagination_config.from_key
|
|
||||||
|
Loading…
Reference in New Issue
Block a user