Remove obsolete commented code
This commit is contained in:
parent
b527fe4b11
commit
aae59e29e6
@ -83,7 +83,6 @@ class Network(QtCore.QObject):
|
|||||||
self._buffer = QtCore.QByteArray()
|
self._buffer = QtCore.QByteArray()
|
||||||
self._socket = QtNetwork.QSslSocket()
|
self._socket = QtNetwork.QSslSocket()
|
||||||
self._socket.connected.connect(self._socket_connected)
|
self._socket.connected.connect(self._socket_connected)
|
||||||
# self._socket.error.connect(self._socket_error)
|
|
||||||
self._socket.readyRead.connect(self._socket_read)
|
self._socket.readyRead.connect(self._socket_read)
|
||||||
self._socket.disconnected.connect(self._socket_disconnected)
|
self._socket.disconnected.connect(self._socket_disconnected)
|
||||||
|
|
||||||
@ -95,12 +94,6 @@ class Network(QtCore.QObject):
|
|||||||
% {'password': str(self._password),
|
% {'password': str(self._password),
|
||||||
'lines': self._lines})
|
'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):
|
def _socket_read(self):
|
||||||
"""Slot: data available on socket."""
|
"""Slot: data available on socket."""
|
||||||
data = self._socket.readAll()
|
data = self._socket.readAll()
|
||||||
|
Loading…
Reference in New Issue
Block a user