Skip to content

Commit a49ae9e

Browse files
committed
Remove unused vars from CSocket and move RecHostAddr
RecHostAddr doesn't need to be a class member, as it is only used in CSocket::OnDataReceived(), so make it local.
1 parent fc39452 commit a49ae9e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/socket.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ void CSocket::OnDataReceived()
365365
use the signal/slot mechanism (i.e. we use messages for that).
366366
*/
367367

368+
CHostAddress RecHostAddr;
369+
368370
// read block from network interface and query address of sender
369371
uSockAddr UdpSocketAddr;
370372
#ifdef _WIN32

src/socket.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ class CSocket : public QObject
7878
QMutex Mutex;
7979

8080
CVector<uint8_t> vecbyRecBuf;
81-
CHostAddress RecHostAddr;
82-
QHostAddress SenderAddress;
83-
quint16 SenderPort;
8481

8582
CChannel* pChannel; // for client
8683
CServer* pServer; // for server

0 commit comments

Comments
 (0)