mirror of
https://github.com/znc/znc.git
synced 2026-05-08 14:24:45 +02:00
Cleanup: Remove unused/dead "WebLogoutCounters" code from User.h.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1921 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -134,29 +134,6 @@ public:
|
||||
void AddBytesRead(unsigned long long u) { m_uBytesRead += u; }
|
||||
void AddBytesWritten(unsigned long long u) { m_uBytesWritten += u; }
|
||||
|
||||
// Counter for logging out of the web interface
|
||||
unsigned int GetWebLogoutCounter(const CString& sToken) {
|
||||
map<CString, unsigned int>::iterator it = m_suWebLogoutCounters.find(sToken);
|
||||
|
||||
if (it == m_suWebLogoutCounters.end()) {
|
||||
m_suWebLogoutCounters[sToken] = 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
return it->second;
|
||||
}
|
||||
|
||||
unsigned int IncWebLogoutCounter(const CString& sToken) {
|
||||
map<CString, unsigned int>::iterator it = m_suWebLogoutCounters.find(sToken);
|
||||
|
||||
if (it == m_suWebLogoutCounters.end()) {
|
||||
m_suWebLogoutCounters[sToken] = 2;
|
||||
return 2;
|
||||
}
|
||||
|
||||
return ++it->second;
|
||||
}
|
||||
|
||||
// Setters
|
||||
void SetUserName(const CString& s);
|
||||
void SetNick(const CString& s);
|
||||
@@ -308,8 +285,6 @@ protected:
|
||||
unsigned int m_uMaxJoins;
|
||||
CString m_sSkinName;
|
||||
|
||||
map<CString, unsigned int> m_suWebLogoutCounters;
|
||||
|
||||
CModules* m_pModules;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user