From: Mark Vitale Date: Fri, 28 Aug 2020 19:12:33 +0000 (-0400) Subject: util: remove dead code KTimeCmp X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=a49788237a85c43752fc788c8d6533905ec7a100 util: remove dead code KTimeCmp This routine has been dead code since the original IBM code import. It was ifdef'd out in commit 45376df63f7f util-warning-cleanup-20011005. Remove the dead code from the tree. No functional change is incurred by this commit. Change-Id: I33689db8e016e1dd5abb88910af8da6208a75ce6 Reviewed-on: https://gerrit.openafs.org/14334 Reviewed-by: Cheyenne Wills Reviewed-by: Benjamin Kaduk Reviewed-by: Mark Vitale Tested-by: BuildBot --- diff --git a/src/util/ktime.c b/src/util/ktime.c index 7eb5121..62590b4 100644 --- a/src/util/ktime.c +++ b/src/util/ktime.c @@ -419,39 +419,6 @@ ktime_next(struct ktime * aktime, afs_int32 afrom) /* compare date in both formats, and return as in strcmp */ -#ifdef undef -static int -KTimeCmp(struct ktime *aktime, struct tm *atm) -{ - afs_int32 tmask; - - /* don't compare day of the week, since we can't tell the - * order in a cyclical set. Caller must check for equality, if - * she cares */ - tmask = aktime->mask; - if (tmask & KTIME_HOUR) { - if (aktime->hour > atm->tm_hour) - return 1; - if (aktime->hour < atm->tm_hour) - return -1; - } - if (tmask & KTIME_MIN) { - if (aktime->min > atm->tm_min) - return 1; - if (aktime->min < atm->tm_min) - return -1; - } - if (tmask & KTIME_SEC) { - if (aktime->sec > atm->tm_sec) - return 1; - if (aktime->sec < atm->tm_sec) - return -1; - } - return 0; -} -#endif - -/* compare date in both formats, and return as in strcmp */ static int KDateCmp(struct ktime_date *akdate, struct tm *atm) {