about summary refs log tree commit diff
path: root/src/libstd/rc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/rc.rs')
-rw-r--r--src/libstd/rc.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/libstd/rc.rs b/src/libstd/rc.rs
index cc1492ba448..02f824b9113 100644
--- a/src/libstd/rc.rs
+++ b/src/libstd/rc.rs
@@ -61,7 +61,6 @@ pub impl<T> Rc<T> {
 }
 
 #[unsafe_destructor]
-#[cfg(not(stage0))]
 impl<T> Drop for Rc<T> {
     fn finalize(&self) {
         unsafe {
@@ -74,21 +73,6 @@ impl<T> Drop for Rc<T> {
     }
 }
 
-#[unsafe_destructor]
-#[cfg(stage0)]
-impl<T> Drop for Rc<T> {
-    fn finalize(&self) {
-        unsafe {
-            (*self.ptr).count -= 1;
-            if (*self.ptr).count == 0 {
-                util::replace_ptr(self.ptr, intrinsics::init());
-                free(self.ptr as *c_void)
-            }
-        }
-    }
-}
-
-
 impl<T> Clone for Rc<T> {
     /// Return a shallow copy of the reference counted pointer.
     #[inline]
@@ -157,7 +141,6 @@ mod test_rc {
 #[abi = "rust-intrinsic"]
 extern "rust-intrinsic" {
     fn init<T>() -> T;
-    #[cfg(not(stage0))]
     fn uninit<T>() -> T;
 }
 
@@ -228,7 +211,6 @@ pub impl<T> RcMut<T> {
 }
 
 #[unsafe_destructor]
-#[cfg(not(stage0))]
 impl<T> Drop for RcMut<T> {
     fn finalize(&self) {
         unsafe {
@@ -241,20 +223,6 @@ impl<T> Drop for RcMut<T> {
     }
 }
 
-#[unsafe_destructor]
-#[cfg(stage0)]
-impl<T> Drop for RcMut<T> {
-    fn finalize(&self) {
-        unsafe {
-            (*self.ptr).count -= 1;
-            if (*self.ptr).count == 0 {
-                util::replace_ptr(self.ptr, init());
-                free(self.ptr as *c_void)
-            }
-        }
-    }
-}
-
 impl<T> Clone for RcMut<T> {
     /// Return a shallow copy of the reference counted pointer.
     #[inline]