From aae59e29e6e62cd3d32bc3222c07b04a8e093a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 14 Nov 2021 10:04:00 +0100 Subject: [PATCH] Remove obsolete commented code --- qweechat/network.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qweechat/network.py b/qweechat/network.py index 306333b..238b7aa 100644 --- a/qweechat/network.py +++ b/qweechat/network.py @@ -83,7 +83,6 @@ class Network(QtCore.QObject): self._buffer = QtCore.QByteArray() self._socket = QtNetwork.QSslSocket() self._socket.connected.connect(self._socket_connected) - # self._socket.error.connect(self._socket_error) self._socket.readyRead.connect(self._socket_read) self._socket.disconnected.connect(self._socket_disconnected) @@ -95,12 +94,6 @@ class Network(QtCore.QObject): % {'password': str(self._password), 'lines': self._lines}) - def _socket_error(self, error): - """Slot: socket error.""" - self.statusChanged.emit( - STATUS_DISCONNECTED, - 'Failed, error: %s' % self._socket.errorString()) - def _socket_read(self): """Slot: data available on socket.""" data = self._socket.readAll()