Remove some unused code.
This commit is contained in:
parent
177f3d1e25
commit
3a3ace6e14
|
@ -25,8 +25,6 @@
|
||||||
#include "language.h"
|
#include "language.h"
|
||||||
#include "winnls.h"
|
#include "winnls.h"
|
||||||
|
|
||||||
CHAR STRING_MENU_Xx[] = "MENU_Xx";
|
|
||||||
|
|
||||||
VOID LANGUAGE_UpdateMenuCheckmarks(VOID)
|
VOID LANGUAGE_UpdateMenuCheckmarks(VOID)
|
||||||
{
|
{
|
||||||
if(Globals.bAnalog == TRUE) {
|
if(Globals.bAnalog == TRUE) {
|
||||||
|
@ -67,14 +65,10 @@ VOID LANGUAGE_UpdateWindowCaption(VOID)
|
||||||
CHAR szCaption[MAX_STRING_LEN];
|
CHAR szCaption[MAX_STRING_LEN];
|
||||||
CHAR szDate[MAX_STRING_LEN];
|
CHAR szDate[MAX_STRING_LEN];
|
||||||
|
|
||||||
LPSTR date = szDate;
|
|
||||||
|
|
||||||
SYSTEMTIME st;
|
SYSTEMTIME st;
|
||||||
LPSYSTEMTIME lpst = &st;
|
|
||||||
|
|
||||||
GetLocalTime(&st);
|
GetLocalTime(&st);
|
||||||
GetDateFormat(LOCALE_USER_DEFAULT, LOCALE_SLONGDATE, lpst, NULL, date,
|
GetDateFormat(LOCALE_USER_DEFAULT, LOCALE_SLONGDATE, &st, NULL, szDate, sizeof(szDate));
|
||||||
MAX_STRING_LEN);
|
|
||||||
|
|
||||||
/* Set frame caption */
|
/* Set frame caption */
|
||||||
LoadString(Globals.hInstance, 0x10C, szCaption, sizeof(szCaption));
|
LoadString(Globals.hInstance, 0x10C, szCaption, sizeof(szCaption));
|
||||||
|
@ -115,16 +109,6 @@ VOID LANGUAGE_LoadMenus(VOID)
|
||||||
AppendMenu(Globals.hSystemMenu, MF_STRING | MF_BYCOMMAND, 1000, szItem);
|
AppendMenu(Globals.hSystemMenu, MF_STRING | MF_BYCOMMAND, 1000, szItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
VOID LANGUAGE_DefaultHandle(WPARAM wParam)
|
|
||||||
{
|
|
||||||
if ((wParam >=CL_FIRST_LANGUAGE) && (wParam<=CL_LAST_LANGUAGE))
|
|
||||||
LANGUAGE_SelectByNumber(wParam - CL_FIRST_LANGUAGE);
|
|
||||||
else
|
|
||||||
printf("Unimplemented menu command %i\n", wParam);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Local Variables: */
|
/* Local Variables: */
|
||||||
/* c-file-style: "GNU" */
|
/* c-file-style: "GNU" */
|
||||||
/* End: */
|
/* End: */
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
VOID LANGUAGE_UpdateWindowCaption(VOID);
|
VOID LANGUAGE_UpdateWindowCaption(VOID);
|
||||||
VOID LANGUAGE_UpdateMenuCheckmarks(VOID);
|
VOID LANGUAGE_UpdateMenuCheckmarks(VOID);
|
||||||
VOID LANGUAGE_LoadMenus(VOID);
|
VOID LANGUAGE_LoadMenus(VOID);
|
||||||
VOID LANGUAGE_DefaultHandle(WPARAM wParam);
|
|
||||||
|
|
||||||
/* Local Variables: */
|
/* Local Variables: */
|
||||||
/* c-file-style: "GNU" */
|
/* c-file-style: "GNU" */
|
||||||
|
|
|
@ -117,11 +117,6 @@ int CLOCK_MenuCommand (WPARAM wParam)
|
||||||
ShellAbout(Globals.hMainWnd, szApp, szAppRelease, 0);
|
ShellAbout(Globals.hMainWnd, szApp, szAppRelease, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Handle languages */
|
|
||||||
/*
|
|
||||||
default:
|
|
||||||
LANGUAGE_DefaultHandle(wParam);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,10 +21,6 @@
|
||||||
#include "clock_res.h"
|
#include "clock_res.h"
|
||||||
|
|
||||||
#define MAX_STRING_LEN 255
|
#define MAX_STRING_LEN 255
|
||||||
#define MAX_PATHNAME_LEN 1024
|
|
||||||
#define MAX_LANGUAGE_NUMBER (CL_LAST_LANGUAGE - CL_FIRST_LANGUAGE)
|
|
||||||
|
|
||||||
#define HELPFILE "clock.hlp"
|
|
||||||
#define DEFAULTICON OIC_WINLOGO
|
#define DEFAULTICON OIC_WINLOGO
|
||||||
|
|
||||||
/* hide the following from winerc */
|
/* hide the following from winerc */
|
||||||
|
@ -44,7 +40,6 @@ typedef struct
|
||||||
HMENU hPopupMenu1;
|
HMENU hPopupMenu1;
|
||||||
LPCSTR lpszIniFile;
|
LPCSTR lpszIniFile;
|
||||||
LPCSTR lpszIcoFile;
|
LPCSTR lpszIcoFile;
|
||||||
UINT wStringTableOffset;
|
|
||||||
|
|
||||||
BOOL bAnalog;
|
BOOL bAnalog;
|
||||||
BOOL bAlwaysOnTop;
|
BOOL bAlwaysOnTop;
|
||||||
|
|
Loading…
Reference in New Issue