Remove unused get_pagination_rows methods. (#6557)

Remove unused get_pagination_rows methods
This commit is contained in:
Erik Johnston 2019-12-17 11:44:32 +00:00 committed by GitHub
parent 3fbe5b7ec3
commit 02553901ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 18 deletions

View file

@ -1008,15 +1008,3 @@ class RoomEventSource(object):
def get_current_key_for_room(self, 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)