From e997948c8a70d76ffac3c60867d47f98e698988f Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Wed, 8 Aug 2012 17:39:08 -0700 Subject: [PATCH] Remove an invalid assert and some commented out code. --- src/libcore/pipes.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libcore/pipes.rs b/src/libcore/pipes.rs index e455d22e70e..8a2dc361b3e 100644 --- a/src/libcore/pipes.rs +++ b/src/libcore/pipes.rs @@ -486,9 +486,7 @@ fn sender_terminate(p: *packet) { let p = unsafe { &*p }; match swap_state_rel(p.header.state, terminated) { empty => { - assert p.header.blocked_task.is_null(); // The receiver will eventually clean up. - //unsafe { forget(p) } } blocked => { // wake up the target @@ -500,7 +498,6 @@ fn sender_terminate(p: *packet) { rustrt::rust_task_deref(old_task); } // The receiver will eventually clean up. - //unsafe { forget(p) } } full => { // This is impossible @@ -520,7 +517,6 @@ fn receiver_terminate(p: *packet) { match swap_state_rel(p.header.state, terminated) { empty => { // the sender will clean up - //unsafe { forget(p) } } blocked => { // this shouldn't happen.