From cc7f0823c59f86891dcc23717e7a5bb18c3b625c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Oct 2020 21:16:56 +0300 Subject: unused code removed --- protocols/JabberG/src/jabber_caps.cpp | 15 --------------- protocols/JabberG/src/jabber_caps.h | 1 - 2 files changed, 16 deletions(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_caps.cpp b/protocols/JabberG/src/jabber_caps.cpp index 6d2d6c7095..e4ce3fd3f1 100755 --- a/protocols/JabberG/src/jabber_caps.cpp +++ b/protocols/JabberG/src/jabber_caps.cpp @@ -585,21 +585,6 @@ CJabberClientCaps* CJabberClientCapsManager::FindClient(const char *szNode) return m_arCaps.find((CJabberClientCaps*)&szNode); } -JabberCapsBits CJabberClientCapsManager::GetClientCaps(const char *szNode, const char *szVer) -{ - mir_cslockfull lck(m_cs); - CJabberClientCaps *pClient = FindClient(szNode); - if (!pClient) { - lck.unlock(); - Netlib_Logf(0, "CAPS: get no caps for: %s, %s", szNode, szVer); - return JABBER_RESOURCE_CAPS_UNINIT; - } - JabberCapsBits jcbCaps = pClient->GetPartialCaps(szVer); - lck.unlock(); - Netlib_Logf(0, "CAPS: get caps %I64x for: %s, %s", jcbCaps, szNode, szVer); - return jcbCaps; -} - CJabberClientPartialCaps* CJabberClientCapsManager::GetPartialCaps(const char *szNode, const char *szHash) { mir_cslock lck(m_cs); diff --git a/protocols/JabberG/src/jabber_caps.h b/protocols/JabberG/src/jabber_caps.h index 34343fe5b0..c96f33ce65 100755 --- a/protocols/JabberG/src/jabber_caps.h +++ b/protocols/JabberG/src/jabber_caps.h @@ -346,7 +346,6 @@ public: void Load(); void Save(); - JabberCapsBits GetClientCaps(const char *szNode, const char *szHash); CJabberClientPartialCaps* GetPartialCaps(const char *szNode, const char *szHash); CJabberClientPartialCaps* SetClientCaps(const char *szNode, const char *szHash, const char *szVer, JabberCapsBits jcbCaps, int nIqId = -1); -- cgit v1.2.3