summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-10-11 14:50:48 +0100
committerRichard van der Hoff <richard@matrix.org>2019-10-17 21:45:59 +0100
commit1ba359a11f238fa8d9b6319067d1b0acefdba20a (patch)
treeabbeed72a2167d5538f1534221b0230531a8d58d /synapse/api
parentRemove dead check_auth script (diff)
downloadsynapse-1ba359a11f238fa8d9b6319067d1b0acefdba20a.tar.xz
rip out some unreachable code
The only possible rejection reason is AUTH_ERROR, so all of this is unreachable.
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/constants.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index f29bce560c..60e99e4663 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -97,8 +97,6 @@ class EventTypes(object):
 
 class RejectedReason(object):
     AUTH_ERROR = "auth_error"
-    REPLACED = "replaced"
-    NOT_ANCESTOR = "not_ancestor"
 
 
 class RoomCreationPreset(object):