From 05165317940d1c2fcb2b089e2fbf5f9bf6246f8e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 May 2023 18:44:59 +0300 Subject: unused function removed from CLIST_INTERFACE --- src/mir_app/src/clc.h | 4 +--- src/mir_app/src/clistcore.cpp | 1 - src/mir_app/src/clistevents.cpp | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/clc.h b/src/mir_app/src/clc.h index 39425f98a6..f5ebfc5e87 100644 --- a/src/mir_app/src/clc.h +++ b/src/mir_app/src/clc.h @@ -118,9 +118,7 @@ void RegisterFileDropping(HWND hwnd); void UnregisterFileDropping(HWND hwnd); /* clistevents.c */ -struct CListEvent* fnAddEvent(CLISTEVENT *cle); - -int fnGetImlIconIndex(HICON hIcon); +CListEvent* fnAddEvent(CLISTEVENT *cle); int fnRemoveEvent(CListEvent *pEvent); int EventsProcessContactDoubleClick(MCONTACT hContact); diff --git a/src/mir_app/src/clistcore.cpp b/src/mir_app/src/clistcore.cpp index dfcc6e81e4..99d52d3966 100644 --- a/src/mir_app/src/clistcore.cpp +++ b/src/mir_app/src/clistcore.cpp @@ -100,7 +100,6 @@ void InitClistCore() g_clistApi.pfnRowHitTest = fnRowHitTest; g_clistApi.pfnAddEvent = fnAddEvent; - g_clistApi.pfnGetImlIconIndex = fnGetImlIconIndex; g_clistApi.pfnFreeEvent = fnRemoveEvent; g_clistApi.pfnInvalidateDisplayNameCacheEntry = fnInvalidateDisplayNameCacheEntry; diff --git a/src/mir_app/src/clistevents.cpp b/src/mir_app/src/clistevents.cpp index b37dede347..a6f391e950 100644 --- a/src/mir_app/src/clistevents.cpp +++ b/src/mir_app/src/clistevents.cpp @@ -76,7 +76,7 @@ static const char* GetEventProtocol(const CListEvent &ev) ///////////////////////////////////////////////////////////////////////////////////////// -int fnGetImlIconIndex(HICON hIcon) +static int fnGetImlIconIndex(HICON hIcon) { auto *p = arImlIcons.find((CListImlIcon*)&hIcon); if (p != nullptr) -- cgit v1.2.3