From 561746238835f28e308cd8f8cf75bc8da707fd5f Mon Sep 17 00:00:00 2001 From: Rafael Ávila de Espíndola Date: Tue, 3 May 2011 11:06:57 -0400 Subject: Remove unused variable. --- src/rt/rust_task.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index bed4e57b194..7080d6f386d 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -290,8 +290,6 @@ rust_task::start_rustc(uintptr_t exit_task_glue, *spp-- = (uintptr_t) 0x0; // output *spp-- = (uintptr_t) 0x0; // retpc - uintptr_t exit_task_frame_base = 0; - I(dom, args); make_aligned_room_for_bytes(spp, callsz - 3 * sizeof(uintptr_t)); @@ -325,11 +323,7 @@ rust_task::start_rustc(uintptr_t exit_task_glue, // The context the activate_glue needs to switch stack. *spp-- = (uintptr_t) spawnee_fn; // instruction to start at for (size_t j = 0; j < n_callee_saves; ++j) { - // callee-saves to carry in when we activate - if (j == callee_save_fp) - *spp-- = exit_task_frame_base; - else - *spp-- = (uintptr_t)NULL; + *spp-- = (uintptr_t)NULL; } // Back up one, we overshot where sp should be. -- cgit 1.4.1-3-g733a5