summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-03-13 12:20:47 +0000
committerRichard van der Hoff <richard@matrix.org>2017-03-13 12:20:47 +0000
commit3c69f324024db9868bdec42a9aceb666c48d209f (patch)
tree1e09876712257aebb5fb63c41c7e9c97908ba11e /synapse/http
parentMove FederationServer._handle_new_pdu to FederationHandler (diff)
parentMerge pull request #1983 from matrix-org/rav/no_redirect_stdio (diff)
downloadsynapse-3c69f324024db9868bdec42a9aceb666c48d209f.tar.xz
Merge remote-tracking branch 'origin/develop' into rav/refactor_received_pdu
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/servlet.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/synapse/http/servlet.py b/synapse/http/servlet.py
index 9a4c36ad5d..8c22d6f00f 100644
--- a/synapse/http/servlet.py
+++ b/synapse/http/servlet.py
@@ -192,16 +192,6 @@ def parse_json_object_from_request(request):
     return content
 
 
-def assert_params_in_request(body, required):
-    absent = []
-    for k in required:
-        if k not in body:
-            absent.append(k)
-
-    if len(absent) > 0:
-        raise SynapseError(400, "Missing params: %r" % absent, Codes.MISSING_PARAM)
-
-
 class RestServlet(object):
 
     """ A Synapse REST Servlet.