mirror of
https://github.com/znc/znc.git
synced 2026-08-10 19:02:51 +02:00
Remove CSocket::m_sLabel since it isn't really used at all
It doesn't really make much sense either, because Csock already has contains a socket name member which can be used for this. This is exactly what this patch does. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1229 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -132,8 +132,8 @@ private:
|
||||
|
||||
class CSocket : public Csock {
|
||||
public:
|
||||
CSocket(CModule* pModule, const CString& sLabel);
|
||||
CSocket(CModule* pModule, const CString& sLabel, const CString& sHostname, unsigned short uPort, int iTimeout = 60);
|
||||
CSocket(CModule* pModule);
|
||||
CSocket(CModule* pModule, const CString& sHostname, unsigned short uPort, int iTimeout = 60);
|
||||
virtual ~CSocket();
|
||||
|
||||
using Csock::Connect;
|
||||
@@ -149,17 +149,14 @@ public:
|
||||
|
||||
// Setters
|
||||
void SetModule(CModule* p);
|
||||
void SetLabel(const CString& s);
|
||||
// !Setters
|
||||
|
||||
// Getters
|
||||
CModule* GetModule() const;
|
||||
const CString& GetLabel() const;
|
||||
// !Getters
|
||||
private:
|
||||
protected:
|
||||
CModule* m_pModule;
|
||||
CString m_sLabel;
|
||||
};
|
||||
|
||||
class CModInfo {
|
||||
@@ -305,9 +302,9 @@ public:
|
||||
// Socket stuff
|
||||
bool AddSocket(CSocket* pSocket);
|
||||
bool RemSocket(CSocket* pSocket);
|
||||
bool RemSocket(const CString& sLabel);
|
||||
bool RemSocket(const CString& sSockName);
|
||||
bool UnlinkSocket(CSocket* pSocket);
|
||||
CSocket* FindSocket(const CString& sLabel);
|
||||
CSocket* FindSocket(const CString& sSockName);
|
||||
virtual void ListSockets();
|
||||
// !Socket stuff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user