summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-04-08 11:01:38 +0100
committerMark Haines <mark.haines@matrix.org>2016-04-08 11:01:38 +0100
commitb9ee5650b0027b664aa700a7ce451a546f404350 (patch)
treea7a8bac8d9fd7277bd19907dfe25c24f7c48524c /synapse/handlers/register.py
parentMerge pull request #708 from matrix-org/markjh/remove_collect_presencelike_data (diff)
downloadsynapse-b9ee5650b0027b664aa700a7ce451a546f404350.tar.xz
Move all the wrapper functions for distributor.fire
Move the functions inside the distributor and import them
where needed. This reduces duplication and makes it possible
for flake8 to detect when the functions aren't used in a
given file.
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r--synapse/handlers/register.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index f287ee247b..b0862067e1 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -23,6 +23,7 @@ from synapse.api.errors import (
 from ._base import BaseHandler
 from synapse.util.async import run_on_reactor
 from synapse.http.client import CaptchaServerHttpClient
+from synapse.util.distributor import registered_user
 
 import logging
 import urllib
@@ -30,10 +31,6 @@ import urllib
 logger = logging.getLogger(__name__)
 
 
-def registered_user(distributor, user):
-    return distributor.fire("registered_user", user)
-
-
 class RegistrationHandler(BaseHandler):
 
     def __init__(self, hs):