summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_accounts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_accounts.cpp')
-rw-r--r--protocols/Steam/src/steam_accounts.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/protocols/Steam/src/steam_accounts.cpp b/protocols/Steam/src/steam_accounts.cpp
deleted file mode 100644
index 8fedcc6181..0000000000
--- a/protocols/Steam/src/steam_accounts.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#include "stdafx.h"
-
-LIST<CSteamProto> CSteamProto::Accounts(1, CSteamProto::CompareProtos);
-
-int CSteamProto::CompareProtos(const CSteamProto *p1, const CSteamProto *p2)
-{
- return mir_wstrcmp(p1->m_tszUserName, p2->m_tszUserName);
-}
-
-CSteamProto* CSteamProto::InitAccount(const char* protoName, const wchar_t* userName)
-{
- CSteamProto *ppro = new CSteamProto(protoName, userName);
- Accounts.insert(ppro);
- return ppro;
-}
-
-int CSteamProto::UninitAccount(CSteamProto* ppro)
-{
- Accounts.remove(ppro);
- delete ppro;
- return 0;
-}
-
-CSteamProto* CSteamProto::GetContactAccount(MCONTACT hContact)
-{
- char *proto = GetContactProto(hContact);
- if (proto == nullptr)
- return nullptr;
-
- for (auto &it : Accounts)
- if (!mir_strcmp(proto, it->m_szModuleName))
- return it;
-
- return nullptr;
-} \ No newline at end of file