about summary refs log tree commit diff
path: root/src/libstd/cell.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-06 09:26:47 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-01-06 09:26:47 -0800
commit6b2a6cb3fe241d6e27fc685a72dd05c3a55d1ea8 (patch)
treea9c895d3360c6d8997b173b2106765b0256c06c8 /src/libstd/cell.rs
parentb6a1fde1c6a13691f21cf739a9e4b6706c6c49c9 (diff)
Register new snapshots
Diffstat (limited to 'src/libstd/cell.rs')
-rw-r--r--src/libstd/cell.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/libstd/cell.rs b/src/libstd/cell.rs
index c5fdddfec76..62fc08fd9d3 100644
--- a/src/libstd/cell.rs
+++ b/src/libstd/cell.rs
@@ -21,33 +21,6 @@ pub struct Cell<T> {
     priv value: T,
 }
 
-#[cfg(stage0)]
-impl<T> Cell<T> {
-    /// Creates a new `Cell` containing the given value.
-    pub fn new(value: T) -> Cell<T> {
-        Cell {
-            value: value,
-        }
-    }
-
-    /// Returns a copy of the contained value.
-    #[inline]
-    pub fn get(&self) -> T {
-        unsafe {
-            ::cast::transmute_copy(&self.value)
-        }
-    }
-
-    /// Sets the contained value.
-    #[inline]
-    pub fn set(&self, value: T) {
-        unsafe {
-            *cast::transmute_mut(&self.value) = value
-        }
-    }
-}
-
-#[cfg(not(stage0))]
 impl<T: ::kinds::Pod> Cell<T> {
     /// Creates a new `Cell` containing the given value.
     pub fn new(value: T) -> Cell<T> {