From 630c15e2d0e63fb784b02e10b784a3e13de111de Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 2 Dec 2008 14:07:11 +0000 Subject: [PATCH] [thorstenp] remove redefined fnuction --- src/common/zeroconf/client_zeroconf.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/common/zeroconf/client_zeroconf.py b/src/common/zeroconf/client_zeroconf.py index ecf9018ab..53200e751 100644 --- a/src/common/zeroconf/client_zeroconf.py +++ b/src/common/zeroconf/client_zeroconf.py @@ -484,18 +484,6 @@ class P2PConnection(IdleObject, PlugIn): self.disconnect() return True - def onreceive(self, recv_handler): - if not recv_handler: - if hasattr(self._owner, 'Dispatcher'): - self.on_receive = self._owner.Dispatcher.ProcessNonBlocking - else: - self.on_receive = None - return - _tmp = self.on_receive - # make sure this cb is not overriden by recursive calls - if not recv_handler(None) and _tmp == self.on_receive: - self.on_receive = recv_handler - def disconnect(self): ''' Closes the socket. ''' gajim.idlequeue.remove_timeout(self.fd)