Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
9892d017
Commit
9892d017
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused get_rule_attr method
parent
86958020
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/rest/client/v1/push_rule.py
+0
-8
0 additions, 8 deletions
synapse/rest/client/v1/push_rule.py
with
0 additions
and
8 deletions
synapse/rest/client/v1/push_rule.py
+
0
−
8
View file @
9892d017
...
@@ -200,14 +200,6 @@ class PushRuleRestServlet(ClientV1RestServlet):
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment