From e51e679f14f61f260275e97b6624bfcbae7c9c39 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 9 Jul 2010 13:33:39 +0000 Subject: * strftime.c: unused declarations removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ strftime.c | 28 ---------------------------- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3bc9be8586..bbd88495d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jul 9 22:32:54 2010 Tanaka Akira + + * strftime.c: unused declarations removed. + Fri Jul 9 21:20:22 2010 Tanaka Akira * strftime.c (rb_strftime_with_timespec): clear colons at unknown diff --git a/strftime.c b/strftime.c index 4f1481de7d..c390d2b6e0 100644 --- a/strftime.c +++ b/strftime.c @@ -122,25 +122,6 @@ extern char *strchr(); #define range(low, item, hi) max(low, min(item, hi)) -#if defined __WIN32__ || defined _WIN32 -#define DLL_IMPORT __declspec(dllimport) -#endif -#ifndef DLL_IMPORT -#define DLL_IMPORT -#endif -#if !defined(OS2) && defined(HAVE_TZNAME) -extern DLL_IMPORT char *tzname[2]; -#ifdef HAVE_DAYLIGHT -extern DLL_IMPORT int daylight; -#endif -#ifdef HAVE_VAR_TIMEZONE -extern DLL_IMPORT TYPEOF_VAR_TIMEZONE timezone; -#endif -#ifdef HAVE_VAR_ALTZONE -extern DLL_IMPORT TYPEOF_VAR_ALTZONE altzone; -#endif -#endif - #undef min /* just in case */ /* min --- return minimum of two numbers */ @@ -197,15 +178,6 @@ rb_strftime_with_timespec(char *s, size_t maxsize, const char *format, const str ptrdiff_t i; int w; long y; -#ifndef HAVE_TM_ZONE -#ifndef HAVE_TM_NAME -#if ((defined(MAILHEADER_EXT) && !HAVE_VAR_TIMEZONE && HAVE_GETTIMEOFDAY) || \ - (!HAVE_TZNAME && HAVE_TIMEZONE)) - struct timeval tv; - struct timezone zone; -#endif -#endif /* HAVE_TM_NAME */ -#endif /* HAVE_TM_ZONE */ int precision, flags, colons; char padding; enum {LEFT, CHCASE, LOWER, UPPER, LOCALE_O, LOCALE_E}; -- cgit v1.2.3