diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-02-24 17:08:55 +0000 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-02-24 17:08:55 +0000 |
commit | fb9b5b6f4a285e1b4878d1e112edf06fc0878629 (patch) | |
tree | 5ea0ca064548b545c9fbbae2f86fa4121e287766 /synapse | |
parent | Merge pull request #604 from matrix-org/daniel/guestaccesstoken (diff) | |
parent | Merge branch 'develop' into markjh/dead_code (diff) | |
download | synapse-fb9b5b6f4a285e1b4878d1e112edf06fc0878629.tar.xz |
Merge pull request #605 from matrix-org/markjh/dead_code
Remove unused get_rule_attr method
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 8 |
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: |