From 3bc4d1a1206ad5f4bb31475e17fc18ecf855ed8e Mon Sep 17 00:00:00 2001 From: James Miller Date: Thu, 20 Jun 2013 17:15:50 +1200 Subject: Remove all #[cfg(stage0)]-protected code New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors. --- src/rt/rust_task.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index f9b588b7850..fe1b4622137 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -162,11 +162,7 @@ void task_start_wrapper(spawn_args *a) bool threw_exception = false; try { -#ifdef _RUST_STAGE0 - a->f(NULL, a->envptr, a->argptr); -#else a->f(a->envptr, a->argptr); -#endif } catch (rust_task *ex) { assert(ex == task && "Expected this task to be thrown for unwinding"); threw_exception = true; @@ -187,11 +183,7 @@ void task_start_wrapper(spawn_args *a) if(env) { // free the environment (which should be a unique closure). const type_desc *td = env->td; -#ifdef _RUST_STAGE0 - td->drop_glue(NULL, NULL, NULL, box_body(env)); -#else td->drop_glue(NULL, NULL, box_body(env)); -#endif task->kernel->region()->free(env); } -- cgit 1.4.1-3-g733a5