From 51e85f14a3b509758eb52967eda0a32892dbadea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Thu, 5 Jul 2018 21:41:28 +0200 Subject: [PATCH] Remove unused code --- gajim/common/connection.py | 2 -- gajim/common/connection_handlers.py | 6 ------ 2 files changed, 8 deletions(-) diff --git a/gajim/common/connection.py b/gajim/common/connection.py index a01741377..21e3152a1 100644 --- a/gajim/common/connection.py +++ b/gajim/common/connection.py @@ -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: diff --git a/gajim/common/connection_handlers.py b/gajim/common/connection_handlers.py index 865c7b205..cf5b6c528 100644 --- a/gajim/common/connection_handlers.py +++ b/gajim/common/connection_handlers.py @@ -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',