From 66ab99eb5b5c47a01e1cc6613af07426abbeb19b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 27 May 2018 14:52:20 +0300 Subject: unused variable CHAT_MANAGER *pci removed and replaced with g_chatApi --- plugins/RecentContacts/src/RecentContacts.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/RecentContacts/src') diff --git a/plugins/RecentContacts/src/RecentContacts.cpp b/plugins/RecentContacts/src/RecentContacts.cpp index 750249de5e..3babe1eeb4 100644 --- a/plugins/RecentContacts/src/RecentContacts.cpp +++ b/plugins/RecentContacts/src/RecentContacts.cpp @@ -9,8 +9,6 @@ static const basic_string ::size_type npos = -1; char *szProto; CMPlugin g_plugin; -CHAT_MANAGER *pci; - HANDLE hTopToolbarButtonShowList; HANDLE hMsgWndEvent; HGENMENU hMenuItemRemove; @@ -466,7 +464,7 @@ static int OnGCInEvent(WPARAM, LPARAM lParam) { GCEVENT *gce = (GCEVENT*)lParam; if (gce->iType == GC_EVENT_MESSAGE) { - SESSION_INFO *si = pci->SM_FindSession(gce->ptszID, gce->pszModule); + SESSION_INFO *si = g_chatApi.SM_FindSession(gce->ptszID, gce->pszModule); if (si && si->hContact) { // skip old events if (gce->time && gce->time <= GetLastUsedTimeStamp(si->hContact)) @@ -481,7 +479,7 @@ static int OnGCOutEvent(WPARAM, LPARAM lParam) { GCEVENT *gce = (GCEVENT*)lParam; if (gce->iType == GC_USER_MESSAGE) { - SESSION_INFO *si = pci->SM_FindSession(gce->ptszID, gce->pszModule); + SESSION_INFO *si = g_chatApi.SM_FindSession(gce->ptszID, gce->pszModule); if (si && si->hContact) SaveLastUsedTimeStamp(si->hContact); } @@ -546,8 +544,6 @@ static INT_PTR ToggleIgnore(WPARAM hContact, LPARAM) extern "C" __declspec(dllexport) int Load(void) { - pci = Chat_GetInterface(); - CoInitialize(nullptr); g_plugin.registerIcon("Recent Contacts", iconList); -- cgit v1.2.3