Commit 739e826e authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Gateways: Remove not needed code

parent a45a217c
......@@ -70,9 +70,6 @@ def __init__(self, name):
self.pep = {}
# Remember where we are in the register agent process
self.agent_registrations = {}
self.roster_supported = True
self.avatar_conversion = False
......@@ -252,12 +252,6 @@ def _subscribe_received(self, _con, _stanza, properties):
properties.jid, is_transport,
auto_auth, properties.nickname)
if is_transport and fjid in self._con.agent_registrations:
self._con.agent_registrations[fjid]['sub_received'] = True
if not self._con.agent_registrations[fjid]['roster_push']:
# We'll reply after roster push result
raise nbxmpp.NodeProcessed
if auto_auth or jid in self.jids_for_auto_auth:
self.send_presence(fjid, 'subscribed')'Auto respond with subscribed: %s', jid)
......@@ -58,9 +58,6 @@ def register_agent(self, agent, form, is_form, success_cb, error_cb):
'success_cb': weak_success_cb,
'error_cb': weak_error_cb})
self.agent_registrations[agent] = {'roster_push': False,
'sub_received': False}
def _register_agent_response(self, _nbxmpp_client, stanza, agent,
success_cb, error_cb):
if not nbxmpp.isResultNode(stanza):
......@@ -75,10 +72,6 @@ def _register_agent_response(self, _nbxmpp_client, stanza, agent,
self._con.get_module('Presence').subscribe(agent, auto_auth=True)
self.agent_registrations[agent]['roster_push'] = True
if self.agent_registrations[agent]['sub_received']:
if success_cb() is not None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment