diff options
author | wtc%netscape.com <devnull@localhost> | 2001-05-08 01:28:24 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-05-08 01:28:24 +0000 |
commit | 6c5cc1f6167d0146243d2ed469875d747beff19c (patch) | |
tree | 4c13454de44d59d26579246822e8a7a44bc4c776 | |
parent | 20da65875d6c3b8499f37d7ca570b3463955306c (diff) | |
download | nspr-hg-6c5cc1f6167d0146243d2ed469875d747beff19c.tar.gz |
Bugzilla bug #45223: Removed unused variable dstLocalBaseMicroseconds andStyle_20010509_Base
do not export gJanuaryFirst1970Seconds.
Modified files: mactime.c
(NSPRPUB_CLIENT_BRANCH)
-rw-r--r-- | pr/src/md/mac/mactime.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/pr/src/md/mac/mactime.c b/pr/src/md/mac/mactime.c index ce053674..bb206919 100644 --- a/pr/src/md/mac/mactime.c +++ b/pr/src/md/mac/mactime.c @@ -23,8 +23,7 @@ #include "mactime.h" -PR_IMPLEMENT(uint64) dstLocalBaseMicroseconds; -PR_IMPLEMENT(unsigned long) gJanuaryFirst1970Seconds; +unsigned long gJanuaryFirst1970Seconds; /* * The geographic location and time zone information of a Mac @@ -81,39 +80,6 @@ void MacintoshInitializeTime(void) * the Mac epoch. Whew! :-) */ gJanuaryFirst1970Seconds = 2082844800 + GMTDelta(); - - /* - * Set up dstLocalBaseMicroseconds just for "prmjtime.c" for Mocha - * needs. The entire MOcha time needs to be rewritten using NSPR 2.0 - * time. - */ - { - uint64 upTime; - unsigned long currentLocalTimeSeconds, - startupTimeSeconds; - uint64 startupTimeMicroSeconds; - uint32 upTimeSeconds; - uint64 oneMillion, upTimeSecondsLong, microSecondsToSeconds; - - Microseconds((UnsignedWide *)&upTime); - - GetDateTime(¤tLocalTimeSeconds); - - LL_I2L(microSecondsToSeconds, PR_USEC_PER_SEC); - LL_DIV(upTimeSecondsLong, *((uint64 *)&upTime), microSecondsToSeconds); - LL_L2I(upTimeSeconds, upTimeSecondsLong); - - startupTimeSeconds = currentLocalTimeSeconds - upTimeSeconds; - - startupTimeSeconds -= gJanuaryFirst1970Seconds; - - // Now convert the startup time into a wide so that we - // can figure out GMT and DST. - - LL_I2L(startupTimeMicroSeconds, startupTimeSeconds); - LL_I2L(oneMillion, PR_USEC_PER_SEC); - LL_MUL(dstLocalBaseMicroseconds, oneMillion, startupTimeMicroSeconds); - } } /* |