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:
psychon
2008-09-29 13:34:42 +00:00
parent 051e1f81d8
commit 3014ae5dcb
3 changed files with 21 additions and 20 deletions
+4 -7
View File
@@ -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