mirror of
https://github.com/znc/znc.git
synced 2026-05-06 05:22:26 +02:00
Remove some unneeded functions from CWebSock
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2014 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -120,13 +120,6 @@ CWebSock::CWebSock() : CHTTPSock(NULL) {
|
||||
m_Template.AddTagHandler(new CZNCTagHandler(*this));
|
||||
}
|
||||
|
||||
CWebSock::CWebSock(const CString& sHostname, unsigned short uPort, int iTimeout)
|
||||
: CHTTPSock(NULL, sHostname, uPort, iTimeout) {
|
||||
m_bPathsSet = false;
|
||||
|
||||
m_Template.AddTagHandler(new CZNCTagHandler(*this));
|
||||
}
|
||||
|
||||
CWebSock::~CWebSock() {
|
||||
if (!m_spAuth.IsNull()) {
|
||||
m_spAuth->Invalidate();
|
||||
@@ -737,10 +730,10 @@ bool CWebSock::OnLogin(const CString& sUser, const CString& sPass) {
|
||||
}
|
||||
|
||||
Csock* CWebSock::GetSockObj(const CString& sHost, unsigned short uPort) {
|
||||
CWebSock* pSock = new CWebSock(sHost, uPort, 120);
|
||||
pSock->SetSockName("Web::Client");
|
||||
|
||||
return pSock;
|
||||
// All listening is done by CListener, thus CWebSock should never have
|
||||
// to listen, but since GetSockObj() is pure virtual...
|
||||
DEBUG("CWebSock::GetSockObj() called - this should never happen!");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
CString CWebSock::GetSkinName() {
|
||||
|
||||
Reference in New Issue
Block a user