From aba7ae9973f9fa8bea1cda1122bb8b41ab528cf9 Mon Sep 17 00:00:00 2001 From: psychon Date: Mon, 2 Feb 2009 14:55:45 +0000 Subject: [PATCH] Remove CNick::Concat which isn't used anywhere git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1360 726aef4b-f618-498e-8847-2d620e286838 --- Nick.cpp | 8 -------- Nick.h | 1 - 2 files changed, 9 deletions(-) diff --git a/Nick.cpp b/Nick.cpp index ac32b501..dcc4ab7e 100644 --- a/Nick.cpp +++ b/Nick.cpp @@ -26,14 +26,6 @@ void CNick::Reset() { m_sChanPerms.clear(); } -CString CNick::Concat(const CString& sNick, const CString& sSuffix, unsigned int uMaxNickLen) { - if (sSuffix.length() >= uMaxNickLen) { - return sSuffix.Left(uMaxNickLen); - } - - return sNick.Left(uMaxNickLen - sSuffix.length()) + sSuffix; -} - void CNick::Parse(const CString& sNickMask) { if (sNickMask.empty()) { return; diff --git a/Nick.h b/Nick.h index 78afe2ae..374ae365 100644 --- a/Nick.h +++ b/Nick.h @@ -32,7 +32,6 @@ public: void Parse(const CString& sNickMask); CString GetHostMask() const; unsigned int GetCommonChans(vector& vChans, CUser* pUser) const; - static CString Concat(const CString& sNick, const CString& sSuffix, unsigned int uMaxNickLen = 9); // Setters void SetUser(CUser* pUser);