summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-02-24 16:31:07 +0000
committerMark Haines <mark.haines@matrix.org>2016-02-24 16:31:07 +0000
commit9892d017b25380184fb8db47ef859b07053f00f9 (patch)
tree0483f214c19e7309fa6f117fab7075ce265881a3 /synapse/rest/client
parentIgnore invalid POST bodies when joining rooms (diff)
downloadsynapse-9892d017b25380184fb8db47ef859b07053f00f9.tar.xz
Remove unused get_rule_attr method
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v1/push_rule.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py
index 5db2805d68..6c8f09e898 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -200,14 +200,6 @@ class PushRuleRestServlet(ClientV1RestServlet):
         else:
             raise UnrecognizedRequestError()
 
-    def get_rule_attr(self, user_id, namespaced_rule_id, attr):
-        if attr == 'enabled':
-            return self.hs.get_datastore().get_push_rule_enabled_by_user_rule_id(
-                user_id, namespaced_rule_id
-            )
-        else:
-            raise UnrecognizedRequestError()
-
 
 def _rule_spec_from_path(path):
     if len(path) < 2: