From 23a26c75b274fcc6ebf3ae69a857cffa2b84fa52 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Aug 2018 12:53:37 +0300 Subject: duplicate function removed --- src/mir_app/src/contact.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/contact.cpp b/src/mir_app/src/contact.cpp index 7a63d3d122..141a02f6a1 100644 --- a/src/mir_app/src/contact.cpp +++ b/src/mir_app/src/contact.cpp @@ -27,19 +27,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern HANDLE hGroupChangeEvent; -static int GetContactStatus(MCONTACT hContact) -{ - char *szProto = GetContactProto(hContact); - if (szProto == nullptr) - return ID_STATUS_OFFLINE; - return db_get_w(hContact, szProto, "Status", ID_STATUS_OFFLINE); -} - MIR_APP_DLL(void) Clist_LoadContactTree(void) { int hideOffline = db_get_b(0, "CList", "HideOffline", SETTING_HIDEOFFLINE_DEFAULT); for (auto &hContact : Contacts()) { - int status = GetContactStatus(hContact); + int status = Contact_GetStatus(hContact); if ((!hideOffline || status != ID_STATUS_OFFLINE) && !db_get_b(hContact, "CList", "Hidden", 0)) Clist_ChangeContactIcon(hContact, g_clistApi.pfnIconFromStatusMode(GetContactProto(hContact), status, hContact)); } -- cgit v1.2.3