mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Remove unused get_rule_attr method
This commit is contained in:
parent
869580206d
commit
9892d017b2
@ -200,14 +200,6 @@ class PushRuleRestServlet(ClientV1RestServlet):
|
|||||||
else:
|
else:
|
||||||
raise UnrecognizedRequestError()
|
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):
|
def _rule_spec_from_path(path):
|
||||||
if len(path) < 2:
|
if len(path) < 2:
|
||||||
|
Loading…
Reference in New Issue
Block a user