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/libcore/task/local_data_priv.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/libcore/task') diff --git a/src/libcore/task/local_data_priv.rs b/src/libcore/task/local_data_priv.rs index b4a9301ca0b..2fbb88327ed 100644 --- a/src/libcore/task/local_data_priv.rs +++ b/src/libcore/task/local_data_priv.rs @@ -6,17 +6,6 @@ use rt::rust_task; trait LocalData { } impl @T: LocalData { } -#[cfg(stage0)] -impl LocalData: Eq { - pure fn eq(&&other: LocalData) -> bool unsafe { - let ptr_a: (uint, uint) = cast::reinterpret_cast(&self); - let ptr_b: (uint, uint) = cast::reinterpret_cast(&other); - return ptr_a == ptr_b; - } - pure fn ne(&&other: LocalData) -> bool { !self.eq(other) } -} -#[cfg(stage1)] -#[cfg(stage2)] impl LocalData: Eq { pure fn eq(other: &@LocalData) -> bool unsafe { let ptr_a: (uint, uint) = cast::reinterpret_cast(&self); -- cgit 1.4.1-3-g733a5