From cf1c8283aca6d09ddfc42d18c8ecc38bbc0f65fb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 16 Sep 2014 14:02:41 +0000 Subject: MS_CLIST_REMOVEMAINMENUITEM also removed git-svn-id: http://svn.miranda-ng.org/main/trunk@10480 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen.cpp | 14 -------------- protocols/Tlen/src/tlen.h | 1 - protocols/Tlen/src/tlen_svc.cpp | 1 - 3 files changed, 16 deletions(-) (limited to 'protocols/Tlen') diff --git a/protocols/Tlen/src/tlen.cpp b/protocols/Tlen/src/tlen.cpp index 92d7e4f813..9897d5b873 100644 --- a/protocols/Tlen/src/tlen.cpp +++ b/protocols/Tlen/src/tlen.cpp @@ -345,20 +345,6 @@ void TlenProtocol::initMenuItems() hMenuContactGrantAuth = Menu_AddContactMenuItem(&mi); } -void uninitMenuItems(TlenProtocol *proto) -{ - CallService(MS_CLIST_REMOVEMAINMENUITEM, (WPARAM)proto->hMenuChats, (LPARAM) 0); - CallService(MS_CLIST_REMOVEMAINMENUITEM, (WPARAM)proto->hMenuMUC, (LPARAM) 0); - CallService(MS_CLIST_REMOVEMAINMENUITEM, (WPARAM)proto->hMenuInbox, (LPARAM) 0); - CallService(MS_CLIST_REMOVEMAINMENUITEM, (WPARAM)proto->hMenuRoot, (LPARAM) 0); - - CallService(MO_REMOVEMENUITEM, (WPARAM)proto->hMenuContactMUC, 0); - CallService(MO_REMOVEMENUITEM, (WPARAM)proto->hMenuPicture, 0); - CallService(MO_REMOVEMENUITEM, (WPARAM)proto->hMenuContactVoice, 0); - CallService(MO_REMOVEMENUITEM, (WPARAM)proto->hMenuContactRequestAuth, 0); - CallService(MO_REMOVEMENUITEM, (WPARAM)proto->hMenuContactGrantAuth, 0); -} - TlenProtocol* tlenProtoInit(const char* pszProtoName, const TCHAR* tszUserName) { TlenProtocol* ppro = new TlenProtocol( pszProtoName, tszUserName ); diff --git a/protocols/Tlen/src/tlen.h b/protocols/Tlen/src/tlen.h index 652e706348..e877986253 100644 --- a/protocols/Tlen/src/tlen.h +++ b/protocols/Tlen/src/tlen.h @@ -445,7 +445,6 @@ extern HANDLE hMainThread; /******************************************************************* * Function declarations *******************************************************************/ -void uninitMenuItems(TlenProtocol *proto); HICON GetIcolibIcon(int iconId); void ReleaseIcolibIcon(HICON hIcon); diff --git a/protocols/Tlen/src/tlen_svc.cpp b/protocols/Tlen/src/tlen_svc.cpp index 53b657bc1e..003ec84619 100644 --- a/protocols/Tlen/src/tlen_svc.cpp +++ b/protocols/Tlen/src/tlen_svc.cpp @@ -1273,7 +1273,6 @@ TlenProtocol::TlenProtocol( const char *aProtoName, const TCHAR *aUserName) : TlenProtocol::~TlenProtocol() { - uninitMenuItems(this); TlenVoiceCancelAll(this); TlenFileCancelAll(this); if (hTlenNudge) -- cgit v1.2.3