summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-15 12:53:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-15 12:53:37 +0300
commit23a26c75b274fcc6ebf3ae69a857cffa2b84fa52 (patch)
tree8a90d5b8dcc5244aedb1c29afa445d3b50f2e0ed
parent1994b049171247976e7515127c0578db0be46dad (diff)
duplicate function removed
-rw-r--r--src/mir_app/src/contact.cpp10
1 files changed, 1 insertions, 9 deletions
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));
}