Remove unused code
This commit is contained in:
parent
503ee35bd0
commit
51e85f14a3
|
@ -630,7 +630,6 @@ class Connection(CommonConnection, ConnectionHandlers):
|
|||
self.last_time_to_reconnect = None
|
||||
self.new_account_info = None
|
||||
self.new_account_form = None
|
||||
self.last_io = app.idlequeue.current_time()
|
||||
self.last_sent = []
|
||||
self.password = passwords.get_password(name)
|
||||
|
||||
|
@ -1512,7 +1511,6 @@ class Connection(CommonConnection, ConnectionHandlers):
|
|||
app.nec.push_incoming_event(AnonymousAuthEvent(None,
|
||||
conn=self, old_jid=old_jid, new_jid=new_jid))
|
||||
if auth:
|
||||
self.last_io = app.idlequeue.current_time()
|
||||
self.connected = 2
|
||||
self.retrycount = 0
|
||||
if self.on_connect_auth:
|
||||
|
|
|
@ -1203,9 +1203,6 @@ ConnectionHTTPUpload):
|
|||
# This way we'll really remove it
|
||||
app.to_be_removed[self.name].remove(jid)
|
||||
|
||||
def _StanzaArrivedCB(self, con, obj):
|
||||
self.last_io = app.idlequeue.current_time()
|
||||
|
||||
def _MucOwnerCB(self, con, iq_obj):
|
||||
log.debug('MucOwnerCB')
|
||||
app.nec.push_incoming_event(MucOwnerReceivedEvent(None, conn=self,
|
||||
|
@ -1470,10 +1467,7 @@ ConnectionHTTPUpload):
|
|||
con.RegisterHandler('iq', self._JingleCB, 'set', nbxmpp.NS_JINGLE)
|
||||
con.RegisterHandler('iq', self._ErrorCB, 'error')
|
||||
con.RegisterHandler('iq', self._IqCB)
|
||||
con.RegisterHandler('iq', self._StanzaArrivedCB)
|
||||
con.RegisterHandler('iq', self._ResultCB, 'result')
|
||||
con.RegisterHandler('presence', self._StanzaArrivedCB)
|
||||
con.RegisterHandler('message', self._StanzaArrivedCB)
|
||||
con.RegisterHandler('unknown', self._StreamCB,
|
||||
nbxmpp.NS_XMPP_STREAMS, xmlns=nbxmpp.NS_STREAMS)
|
||||
con.RegisterHandler('iq', self._PubkeyGetCB, 'get',
|
||||
|
|
Loading…
Reference in New Issue