PATCH: oleaut32/parsedt.c

Gerald Pfeifer gerald at pfeifer.com
Tue Oct 14 05:52:31 CDT 2003


Spotted on SuSE Linux 8.2, verified on FreeBSD 4.8.

Gerald

ChangeLog:
Remove unused variables mdays, months, days, and DateStyle.

Index: parsedt.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/parsedt.c,v
retrieving revision 1.8
diff -u -3 -p -r1.8 parsedt.c
--- parsedt.c	18 Jun 2003 19:45:23 -0000	1.8
+++ parsedt.c	14 Oct 2003 10:50:01 -0000
@@ -57,18 +57,9 @@ static int	DecodeTimezone(char *str, int
 #define USE_DATE_CACHE 1
 #define ROUND_ALL 0

-static const int mdays[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0};
-
-static const char * const months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
-"Jul", "Aug", "Sep", "Oct", "Nov", "Dec", NULL};
-
-static const char * const days[] = {"Sunday", "Monday", "Tuesday", "Wednesday",
-"Thursday", "Friday", "Saturday", NULL};
-
-/* those three vars are useless, and not even initialized, so
+/* those two vars are useless, and not even initialized, so
  * I'd rather remove them all (EPP)
  */
-int	DateStyle;
 bool	EuroDates;
 int	CTimeZone;




More information about the wine-patches mailing list