summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-04-12 21:07:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-04-12 21:07:14 +0300
commit0dee9779ac8846ed47c0989b6b9b7e62b42a23bf (patch)
treed198c2c0fd28dfff006d389dfa7e33b8773f6934 /protocols/VKontakte/src/misc.cpp
parentf0a5881bdc0b1773dd0a39e5788a1c77d7fe5681 (diff)
wiping custom icolib functions: VK
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 0b55ba50a4..6b299829a4 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -82,15 +82,6 @@ void InitIcons()
g_plugin.registerIcon(LPGEN("Protocols") "/" LPGEN("VKontakte"), iconList, "VKontakte");
}
-HANDLE GetIconHandle(int iCommand)
-{
- for (auto &it : iconList)
- if (it.defIconID == iCommand)
- return it.hIcolib;
-
- return nullptr;
-}
-
/////////////////////////////////////////////////////////////////////////////////////////
char* ExpUrlEncode(const char *szUrl, bool strict)
@@ -765,7 +756,7 @@ void CVkProto::SetSrmmReadStatus(MCONTACT hContact)
_wcsftime_l(ttime, _countof(ttime), L"%X - %x", localtime(&time), locale);
_free_locale(locale);
- Srmm_SetStatusText(hContact, CMStringW(FORMAT, TranslateT("Message read: %s"), ttime), IcoLib_GetIconByHandle(GetIconHandle(IDI_READMSG)));
+ Srmm_SetStatusText(hContact, CMStringW(FORMAT, TranslateT("Message read: %s"), ttime), g_plugin.getIcon(IDI_READMSG));
}
void CVkProto::MarkDialogAsRead(MCONTACT hContact)