summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/federation/replication.py7
-rw-r--r--synapse/federation/transport.py9
2 files changed, 0 insertions, 16 deletions
diff --git a/synapse/federation/replication.py b/synapse/federation/replication.py
index d1eddf249d..37e7db0536 100644
--- a/synapse/federation/replication.py
+++ b/synapse/federation/replication.py
@@ -274,13 +274,6 @@ class ReplicationLayer(object):
 
     @defer.inlineCallbacks
     @log_function
-    def on_context_pdus_request(self, context):
-        raise NotImplementedError(
-            "on_context_pdus_request is a security violation"
-        )
-
-    @defer.inlineCallbacks
-    @log_function
     def on_backfill_request(self, context, versions, limit):
         pdus = yield self.handler.on_backfill_request(
             context, versions, limit
diff --git a/synapse/federation/transport.py b/synapse/federation/transport.py
index 04ad7e63ae..b9f7d54c71 100644
--- a/synapse/federation/transport.py
+++ b/synapse/federation/transport.py
@@ -403,15 +403,6 @@ class TransportLayer(object):
             )
         )
 
-        self.server.register_path(
-            "GET",
-            re.compile("^" + PREFIX + "/context/([^/]*)/$"),
-            self._with_authentication(
-                lambda origin, content, query, context:
-                handler.on_context_pdus_request(context)
-            )
-        )
-
         # This is when we receive a server-server Query
         self.server.register_path(
             "GET",