From afd91f8a5698e7767ddfbf90c665c08dcd4f0de0 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 23 Sep 2012 22:25:43 -0700 Subject: Register snapshots. Remove redundant Eq impls, Makefile hacks --- src/libstd/json.rs | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/libstd/json.rs') diff --git a/src/libstd/json.rs b/src/libstd/json.rs index 6b80aa716a0..0f7bec6344a 100644 --- a/src/libstd/json.rs +++ b/src/libstd/json.rs @@ -676,17 +676,6 @@ pure fn lt(value0: Json, value1: Json) -> bool { } } -#[cfg(stage0)] -impl Error : Eq { - pure fn eq(&&other: Error) -> bool { - self.line == other.line && - self.col == other.col && - self.msg == other.msg - } - pure fn ne(&&other: Error) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl Error : Eq { pure fn eq(other: &Error) -> bool { self.line == (*other).line && @@ -696,27 +685,11 @@ impl Error : Eq { pure fn ne(other: &Error) -> bool { !self.eq(other) } } -#[cfg(stage0)] -impl Json : Eq { - pure fn eq(&&other: Json) -> bool { eq(self, other) } - pure fn ne(&&other: Json) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl Json : Eq { pure fn eq(other: &Json) -> bool { eq(self, (*other)) } pure fn ne(other: &Json) -> bool { !self.eq(other) } } -#[cfg(stage0)] -impl Json : Ord { - pure fn lt(&&other: Json) -> bool { lt(self, other) } - pure fn le(&&other: Json) -> bool { !other.lt(self) } - pure fn ge(&&other: Json) -> bool { !self.lt(other) } - pure fn gt(&&other: Json) -> bool { other.lt(self) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl Json : Ord { pure fn lt(other: &Json) -> bool { lt(self, (*other)) } pure fn le(other: &Json) -> bool { !(*other).lt(&self) } -- cgit 1.4.1-3-g733a5