From 21320c54ea3448805d4af6035a78b41fdd9b0ce3 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 10 Apr 2014 09:31:55 +0000 Subject: Remove not needed debug service git-svn-id: http://svn.miranda-ng.org/main/trunk@8917 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SplashScreen/src/headers.h | 3 --- plugins/SplashScreen/src/main.cpp | 13 ------------- plugins/SplashScreen/src/services.cpp | 26 -------------------------- 3 files changed, 42 deletions(-) (limited to 'plugins/SplashScreen') diff --git a/plugins/SplashScreen/src/headers.h b/plugins/SplashScreen/src/headers.h index b080917889..9122a377e5 100644 --- a/plugins/SplashScreen/src/headers.h +++ b/plugins/SplashScreen/src/headers.h @@ -88,8 +88,5 @@ extern int OptInit(WPARAM wParam, LPARAM lParam); extern BOOL ShowSplash(BOOL bpreview); extern VOID ReadDbConfig(); extern INT_PTR ShowSplashService(WPARAM wparam,LPARAM lparam); -#ifdef _DEBUG - extern INT_PTR TestService(WPARAM wParam,LPARAM lParam); -#endif #endif //HEADERS_H diff --git a/plugins/SplashScreen/src/main.cpp b/plugins/SplashScreen/src/main.cpp index 4dc31a6f1d..010e8a81fe 100644 --- a/plugins/SplashScreen/src/main.cpp +++ b/plugins/SplashScreen/src/main.cpp @@ -289,19 +289,6 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) // Service to call splash CreateServiceFunction(MS_SHOWSPLASH, ShowSplashService); - #ifdef _DEBUG - CreateServiceFunction("Splash/Test", TestService); - - CLISTMENUITEM mi = { sizeof(mi) }; - mi.flags = CMIF_TCHAR; - mi.hIcon = LoadSkinnedIcon(SKINICON_OTHER_MIRANDA); - mi.hotKey = 0; - mi.position = -0x7FFFFFFF; - mi.ptszName = LPGENT("Call Splash Service"); - mi.pszService = "Splash/Test"; - Menu_AddMainMenuItem(&mi); - #endif - #ifdef _DEBUG logMessage(_T("Loading modules"), _T("done")); #endif diff --git a/plugins/SplashScreen/src/services.cpp b/plugins/SplashScreen/src/services.cpp index 010094f8bf..ecf9821208 100644 --- a/plugins/SplashScreen/src/services.cpp +++ b/plugins/SplashScreen/src/services.cpp @@ -41,29 +41,3 @@ INT_PTR ShowSplashService(WPARAM wparam,LPARAM lparam) return 0; } - -#ifdef _DEBUG -INT_PTR TestService(WPARAM wParam,LPARAM lParam) -{ - TCHAR szTempPath[MAX_PATH]; - - OPENFILENAME ofn={0}; - ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400; - TCHAR tmp[MAX_PATH]; - mir_sntprintf(tmp, SIZEOF(tmp), _T("%s (*.png, *.bmp)%c*.png;*.bmp%c%c"), TranslateT("Graphic files"), 0, 0, 0); - ofn.lpstrFilter = tmp; - ofn.hwndOwner=0; - ofn.lpstrFile = szTempPath; - ofn.nMaxFile = MAX_PATH; - ofn.nMaxFileTitle = MAX_PATH; - ofn.Flags = OFN_HIDEREADONLY; - ofn.lpstrInitialDir = szSplashFile; - *szTempPath = '\0'; - ofn.lpstrDefExt = _T(""); - - if (GetOpenFileName(&ofn)) - CallService(MS_SHOWSPLASH,(WPARAM)szTempPath,0); - - return 0; -} -#endif \ No newline at end of file -- cgit v1.2.3