about summary refs log tree commit diff
path: root/src/libstd/time.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-23 22:25:43 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-23 23:01:49 -0700
commitafd91f8a5698e7767ddfbf90c665c08dcd4f0de0 (patch)
tree3bc5d52fd888c010ea797f6570c92abe861c183a /src/libstd/time.rs
parent2dae768624de87bcec1160bd29c27af1affe7f5f (diff)
downloadrust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.tar.gz
rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.zip
Register snapshots. Remove redundant Eq impls, Makefile hacks
Diffstat (limited to 'src/libstd/time.rs')
-rw-r--r--src/libstd/time.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/libstd/time.rs b/src/libstd/time.rs
index bc3f8162c4d..64f65d15a93 100644
--- a/src/libstd/time.rs
+++ b/src/libstd/time.rs
@@ -37,15 +37,6 @@ extern mod rustrt {
 /// A record specifying a time value in seconds and nanoseconds.
 type Timespec = {sec: i64, nsec: i32};
 
-#[cfg(stage0)]
-impl Timespec : Eq {
-    pure fn eq(&&other: Timespec) -> bool {
-        self.sec == other.sec && self.nsec == other.nsec
-    }
-    pure fn ne(&&other: Timespec) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl Timespec : Eq {
     pure fn eq(other: &Timespec) -> bool {
         self.sec == (*other).sec && self.nsec == (*other).nsec
@@ -101,26 +92,6 @@ type Tm_ = {
     tm_nsec: i32, // nanoseconds
 };
 
-#[cfg(stage0)]
-impl Tm_ : Eq {
-    pure fn eq(&&other: Tm_) -> bool {
-        self.tm_sec == other.tm_sec &&
-        self.tm_min == other.tm_min &&
-        self.tm_hour == other.tm_hour &&
-        self.tm_mday == other.tm_mday &&
-        self.tm_mon == other.tm_mon &&
-        self.tm_year == other.tm_year &&
-        self.tm_wday == other.tm_wday &&
-        self.tm_yday == other.tm_yday &&
-        self.tm_isdst == other.tm_isdst &&
-        self.tm_gmtoff == other.tm_gmtoff &&
-        self.tm_zone == other.tm_zone &&
-        self.tm_nsec == other.tm_nsec
-    }
-    pure fn ne(&&other: Tm_) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl Tm_ : Eq {
     pure fn eq(other: &Tm_) -> bool {
         self.tm_sec == (*other).tm_sec &&
@@ -143,13 +114,6 @@ enum Tm {
     Tm_(Tm_)
 }
 
-#[cfg(stage0)]
-impl Tm : Eq {
-    pure fn eq(&&other: Tm) -> bool { *self == *other }
-    pure fn ne(&&other: Tm) -> bool { *self != *other }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl Tm : Eq {
     pure fn eq(other: &Tm) -> bool { *self == *(*other) }
     pure fn ne(other: &Tm) -> bool { *self != *(*other) }