summary refs log tree commit diff
path: root/synapse/streams/events.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-09-22 18:33:34 +0100
committerMark Haines <mark.haines@matrix.org>2015-09-22 18:33:34 +0100
commitbb4dddd6c4f85bc5b07119d3f9dec31964b5b6f9 (patch)
treebb9a1b54e093797846c142d64af4fafafdeee738 /synapse/streams/events.py
parentNote that GzipFile was removed in comment that referenced it (diff)
downloadsynapse-bb4dddd6c4f85bc5b07119d3f9dec31964b5b6f9.tar.xz
Move NullSource out of synapse and into tests since it is only used by the tests
Diffstat (limited to 'synapse/streams/events.py')
-rw-r--r--synapse/streams/events.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/synapse/streams/events.py b/synapse/streams/events.py
index 8671a8fa4e..699083ae12 100644
--- a/synapse/streams/events.py
+++ b/synapse/streams/events.py
@@ -23,22 +23,6 @@ from synapse.handlers.typing import TypingNotificationEventSource
 from synapse.handlers.receipts import ReceiptEventSource
 
 
-class NullSource(object):
-    """This event source never yields any events and its token remains at
-    zero. It may be useful for unit-testing."""
-    def __init__(self, hs):
-        pass
-
-    def get_new_events_for_user(self, user, from_key, limit):
-        return defer.succeed(([], from_key))
-
-    def get_current_key(self, direction='f'):
-        return defer.succeed(0)
-
-    def get_pagination_rows(self, user, pagination_config, key):
-        return defer.succeed(([], pagination_config.from_key))
-
-
 class EventSources(object):
     SOURCE_TYPES = {
         "room": RoomEventSource,