summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-05 19:43:17 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-05 19:43:17 +0000
commitba8ac996f951c872c8815f09a4ffd3a508da6863 (patch)
tree8980cb46828b426c9c5f90eeabfffc649e5631f1 /synapse
parentMove federation API responding code out of weird mix of lambdas into Servlet-... (diff)
downloadsynapse-ba8ac996f951c872c8815f09a4ffd3a508da6863.tar.xz
Remove the dead 'rate_limit_origin' method from TransportLayerServer
Diffstat (limited to 'synapse')
-rw-r--r--synapse/federation/transport/server.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py
index eb3e30a189..dc9f1e082b 100644
--- a/synapse/federation/transport/server.py
+++ b/synapse/federation/transport/server.py
@@ -109,12 +109,6 @@ class TransportLayerServer(object):
             defer.returnValue(response)
         return new_handler
 
-    def rate_limit_origin(self, handler):
-        def new_handler(origin, *args, **kwargs):
-            response = yield handler(origin, *args, **kwargs)
-            defer.returnValue(response)
-        return new_handler()
-
     @log_function
     def register_received_handler(self, handler):
         """ Register a handler that will be fired when we receive data.