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