summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-10-19 21:16:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-10-19 21:16:56 +0300
commitcc7f0823c59f86891dcc23717e7a5bb18c3b625c (patch)
tree7aa0632ae47f2ca3a998fcdcb95fd8cab8b6f4e4 /protocols/JabberG
parent3851ada2ce3bccbc89f020063c8665b2c6924545 (diff)
unused code removed
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-xprotocols/JabberG/src/jabber_caps.cpp15
-rwxr-xr-xprotocols/JabberG/src/jabber_caps.h1
2 files changed, 0 insertions, 16 deletions
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);