Skip to content
Snippets Groups Projects
Commit fb9b5b6f authored by Mark Haines's avatar Mark Haines
Browse files

Merge pull request #605 from matrix-org/markjh/dead_code

Remove unused get_rule_attr method
parents e8d34bcc 4ecfbac8
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment