From 8cbf63303a7f35241fa1ba2bd4ca8306e81d1837 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 16 Sep 2014 13:51:27 +0000 Subject: useless service MS_CLIST_REMOVECONTACTMENUITEM deleted git-svn-id: http://svn.miranda-ng.org/main/trunk@10479 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/clistmenus.cpp | 7 ------- src/modules/clist/movetogroup.cpp | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'src/modules/clist') diff --git a/src/modules/clist/clistmenus.cpp b/src/modules/clist/clistmenus.cpp index ac0c408287..6e92577cc7 100644 --- a/src/modules/clist/clistmenus.cpp +++ b/src/modules/clist/clistmenus.cpp @@ -274,12 +274,6 @@ INT_PTR FreeOwnerDataMainMenu(WPARAM, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////////////// // CONTACT MENU -static INT_PTR RemoveContactMenuItem(WPARAM wParam, LPARAM) -{ - CallService(MO_REMOVEMENUITEM, wParam, 0); - return 0; -} - static INT_PTR AddContactMenuItem(WPARAM, LPARAM lParam) { TMO_MenuItem tmi; @@ -1287,7 +1281,6 @@ void InitCustomMenus(void) CreateServiceFunction("CList/AddContactMenuItem", AddContactMenuItem); CreateServiceFunction(MS_CLIST_MENUBUILDCONTACT, BuildContactMenu); - CreateServiceFunction(MS_CLIST_REMOVECONTACTMENUITEM, RemoveContactMenuItem); CreateServiceFunction(MS_CLIST_SHOWHIDEMENUITEM, ShowHideMenuItem); CreateServiceFunction(MS_CLIST_MODIFYMENUITEM, ModifyCustomMenuItem); diff --git a/src/modules/clist/movetogroup.cpp b/src/modules/clist/movetogroup.cpp index 2680c7e218..48e14cfb20 100644 --- a/src/modules/clist/movetogroup.cpp +++ b/src/modules/clist/movetogroup.cpp @@ -98,7 +98,7 @@ static int OnContactMenuBuild(WPARAM wParam, LPARAM) } for (i=0; i < lphGroupsItems.getCount(); i++) - CallService(MS_CLIST_REMOVECONTACTMENUITEM, (WPARAM)lphGroupsItems[i], 0); + CallService(MO_REMOVEMENUITEM, (WPARAM)lphGroupsItems[i], 0); lphGroupsItems.destroy(); ptrT szContactGroup(db_get_tsa(wParam, "CList", "Group")); -- cgit v1.2.3