[clock05] Remove unused/useless code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog
	Remove some unused code
diff -u -r programs/clock.4/language.c programs/clock/language.c
--- programs/clock.4/language.c	2003-11-28 15:34:35.000000000 +0000
+++ programs/clock/language.c	2003-11-28 16:34:08.000000000 +0000
@@ -25,8 +25,6 @@
 #include "language.h"
 #include "winnls.h"
 
-CHAR STRING_MENU_Xx[]      = "MENU_Xx";
-
 VOID LANGUAGE_UpdateMenuCheckmarks(VOID)
 {
     if(Globals.bAnalog == TRUE) {
@@ -61,14 +59,10 @@
     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, IDS_CLOCK, szCaption, sizeof(szCaption));
@@ -109,16 +103,6 @@
     AppendMenu(Globals.hSystemMenu, MF_STRING | MF_BYCOMMAND, IDM_ONTOP, 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:                */
diff -u -r programs/clock.4/language.h programs/clock/language.h
--- programs/clock.4/language.h	2002-03-27 21:17:01.000000000 +0000
+++ programs/clock/language.h	2003-11-28 16:22:50.000000000 +0000
@@ -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" */
diff -u -r programs/clock.4/main.c programs/clock/main.c
--- programs/clock.4/main.c	2003-11-28 15:37:06.000000000 +0000
+++ programs/clock/main.c	2003-11-28 16:23:39.000000000 +0000
@@ -117,11 +117,6 @@
             ShellAbout(Globals.hMainWnd, szApp, szAppRelease, 0);
             break;
         }
-            /* Handle languages */
-            /*
-        default:
-            LANGUAGE_DefaultHandle(wParam);
-            */
     }
     return 0;
 }
diff -u -r programs/clock.4/main.h programs/clock/main.h
--- programs/clock.4/main.h	2003-11-28 15:40:48.000000000 +0000
+++ programs/clock/main.h	2003-11-28 16:20:05.000000000 +0000
@@ -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
 
 typedef struct
@@ -41,7 +37,6 @@
   HMENU   hPopupMenu1;
   LPCSTR  lpszIniFile;
   LPCSTR  lpszIcoFile;
-  UINT    wStringTableOffset;
 
   BOOL    bAnalog;
   BOOL    bAlwaysOnTop;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux