diff --git a/Makefile b/Makefile index d36bc43..99d2826 100644 --- a/Makefile +++ b/Makefile @@ -199,11 +199,6 @@ GCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-common -fstrict-aliasing \ # to the end of the "CFLAGS=" line. # This variable is not described in X3J11's work. # -# If you want a "gtime" function (a la MACH), add -# -DCMUCS -# to the end of the "CFLAGS=" line -# This function is not described in X3J11's work. -# # NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put # out by the National Institute of Standards and Technology # which claims to test C and Posix conformance. If you want to pass PCTS, add diff --git a/NEWS b/NEWS index 84892ce..2c45b22 100644 --- a/NEWS +++ b/NEWS @@ -69,6 +69,8 @@ Unreleased, experimental changes For easier maintenance later, some C code has been simplified and some lint has been removed. + The long-obsolete 'gtime' function has been removed. + Changes affecting distribution tarballs The files checktab.awk and zoneinfo2tdf.pl are now distributed in diff --git a/localtime.c b/localtime.c index ccd0a3a..7b22f72 100644 --- a/localtime.c +++ b/localtime.c @@ -1995,25 +1995,6 @@ timeoff(struct tm *const tmp, const long offset) #endif /* defined STD_INSPIRED */ -#ifdef CMUCS - -/* -** The following is supplied for compatibility with -** previous versions of the CMUCS runtime library. -*/ - -long -gtime(struct tm *const tmp) -{ - const time_t t = mktime(tmp); - - if (t == WRONG) - return -1; - return t; -} - -#endif /* defined CMUCS */ - /* ** XXX--is the below the right way to conditionalize?? */