From 2eb26dc2acbcd30ae9f3673dae89ba647f594564 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 Feb 2017 17:52:22 +0300 Subject: PLI_ONLINE & PLI_OFFLINE - unused constants removed --- protocols/EmLanProto/src/amdproto.cpp | 9 ++++----- protocols/Sametime/src/sametime.cpp | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'protocols') diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index 4ad6a6c077..c65fdeb4de 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -85,11 +85,10 @@ static INT_PTR __cdecl EMPGetName(WPARAM wParam, LPARAM lParam) static INT_PTR __cdecl EMPLoadIcon(WPARAM wParam, LPARAM) { - UINT id = IDI_ICON_ONLINE; - if ((wParam & 0xFFFF) == PLI_OFFLINE) - id = IDI_ICON_OFFLINE; - HICON res = LoadIcon(g_hInstance, MAKEINTRESOURCE(id)); - return (INT_PTR)res; + if ((wParam & 0xFFFF) != PLI_PROTOCOL) + return 0; + + return (INT_PTR)LoadIcon(g_hInstance, MAKEINTRESOURCE(IDI_ICON_ONLINE)); } static INT_PTR __cdecl EMPGetStatus(WPARAM, LPARAM) diff --git a/protocols/Sametime/src/sametime.cpp b/protocols/Sametime/src/sametime.cpp index 0a2e9631ff..0b78ced3f5 100644 --- a/protocols/Sametime/src/sametime.cpp +++ b/protocols/Sametime/src/sametime.cpp @@ -59,8 +59,7 @@ INT_PTR CSametimeProto::GetStatus(WPARAM wParam, LPARAM lParam) /** Loads the icon corresponding to the status * Called by the CList when the status changes. -* @param wParam : one of the following values : \n - PLI_PROTOCOL | PLI_ONLINE | PLI_OFFLINE +* @param wParam : icon type * @return an \c HICON in which the icon has been loaded. */ INT_PTR CSametimeProto::SametimeLoadIcon(WPARAM wParam, LPARAM lParam) -- cgit v1.2.3