summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2016-11-04 11:09:38 +0000
committerGitHub <noreply@github.com>2016-11-04 11:09:38 +0000
commit16dc9064d4b6a5692e0aca88913d26054052b392 (patch)
tree3f7b3738d4dc34068ebef601f27cebb331415be6
parentMerge pull request #1193 from matrix-org/paul/metrics (diff)
parentComment (diff)
downloadsynapse-16dc9064d4b6a5692e0aca88913d26054052b392.tar.xz
Merge pull request #1195 from matrix-org/erikj/incorrect_func
Remove unused but buggy function
-rw-r--r--synapse/storage/pusher.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/synapse/storage/pusher.py b/synapse/storage/pusher.py
index 8f5f8f24a9..8cc9f0353b 100644
--- a/synapse/storage/pusher.py
+++ b/synapse/storage/pusher.py
@@ -137,17 +137,8 @@ class PusherStore(SQLBaseStore):
 
     @cachedInlineCallbacks(num_args=1, max_entries=15000)
     def get_if_user_has_pusher(self, user_id):
-        result = yield self._simple_select_many_batch(
-            table='pushers',
-            keyvalues={
-                'user_name': 'user_id',
-            },
-            retcol='user_name',
-            desc='get_if_user_has_pusher',
-            allow_none=True,
-        )
-
-        defer.returnValue(bool(result))
+        # This only exists for the cachedList decorator
+        raise NotImplementedError()
 
     @cachedList(cached_method_name="get_if_user_has_pusher",
                 list_name="user_ids", num_args=1, inlineCallbacks=True)