diff options
Diffstat (limited to 'protocols/Steam/src/steam_instances.cpp')
-rw-r--r-- | protocols/Steam/src/steam_instances.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/protocols/Steam/src/steam_instances.cpp b/protocols/Steam/src/steam_instances.cpp deleted file mode 100644 index b88ada2bb4..0000000000 --- a/protocols/Steam/src/steam_instances.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "stdafx.h"
-
-int CSteamProto::CompareProtos(const CSteamProto *p1, const CSteamProto *p2)
-{
- return lstrcmp(p1->m_tszUserName, p2->m_tszUserName);
-}
-
-LIST<CSteamProto> CSteamProto::InstanceList(1, CSteamProto::CompareProtos);
-
-CSteamProto* CSteamProto::InitProtoInstance(const char* protoName, const wchar_t* userName)
-{
- CSteamProto *ppro = new CSteamProto(protoName, userName);
- InstanceList.insert(ppro);
-
- return ppro;
-}
-
-int CSteamProto::UninitProtoInstance(CSteamProto* ppro)
-{
- InstanceList.remove(ppro);
- delete ppro;
-
- return 0;
-}
-
-void CSteamProto::UninitProtoInstances()
-{
- for (int i = InstanceList.getCount(); i > 0; i--)
- UninitProtoInstance(InstanceList[i]);
- InstanceList.destroy();
-}
-
-CSteamProto* CSteamProto::GetContactProtoInstance(MCONTACT hContact)
-{
- char *proto = GetContactProto(hContact);
- if (proto == nullptr)
- return nullptr;
-
- for (int i = 0; i < InstanceList.getCount(); i++)
- if (!mir_strcmp(proto, InstanceList[i]->m_szModuleName))
- return InstanceList[i];
-
- return nullptr;
-}
\ No newline at end of file |