summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-29 12:06:28 +0000
committerErik Johnston <erik@matrix.org>2019-01-29 12:06:28 +0000
commit64c1bd1d21e94bb08082ac63992697f99192912b (patch)
tree556599ee64596270707be788d9cc8d1b5620d927
parentFix test to use valid event format (diff)
downloadsynapse-64c1bd1d21e94bb08082ac63992697f99192912b.tar.xz
Remove dead function
-rw-r--r--synapse/api/auth.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 1a47fede71..2d78a257d3 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -551,17 +551,6 @@ class Auth(object):
         return self.store.is_server_admin(user)
 
     @defer.inlineCallbacks
-    def add_auth_events(self, builder, context):
-        prev_state_ids = yield context.get_prev_state_ids(self.store)
-        auth_ids = yield self.compute_auth_events(builder, prev_state_ids)
-
-        auth_events_entries = yield self.store.add_event_hashes(
-            auth_ids
-        )
-
-        builder.auth_events = auth_events_entries
-
-    @defer.inlineCallbacks
     def compute_auth_events(self, event, current_state_ids, for_verification=False):
         if event.type == EventTypes.Create:
             defer.returnValue([])