Remove obsolete commented code

This commit is contained in:
Sébastien Helleu 2021-11-14 10:04:00 +01:00
parent b527fe4b11
commit aae59e29e6

View file

@ -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()