summary refs log tree commit diff
path: root/synapse/http/servlet.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-03-13 09:58:39 +0000
committerErik Johnston <erikj@jki.re>2017-03-13 09:59:33 +0000
commit7eae6eaa2f12474060f0bae03b4aa5bab9c9e1f7 (patch)
tree9e4be9ae4372be244a4f46286becee841a85c6a6 /synapse/http/servlet.py
parentMerge pull request #1976 from matrix-org/erikj/device_delete_sync (diff)
downloadsynapse-7eae6eaa2f12474060f0bae03b4aa5bab9c9e1f7.tar.xz
Revert "Support registration & login with phone number"
Diffstat (limited to 'synapse/http/servlet.py')
-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.