about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-09-08 10:37:52 -0700
committerBrian Anderson <banderson@mozilla.com>2011-09-11 17:31:40 -0700
commit6f6f36172b2e0cd86ffffd1d0ed2deb75972db72 (patch)
tree9e0462adcf2162dc4f27b5c7b18deffc342011b6 /src/rt/rust_task.cpp
parent118194381c646b3200f7906710d6dd1630aa0fc8 (diff)
downloadrust-6f6f36172b2e0cd86ffffd1d0ed2deb75972db72.tar.gz
rust-6f6f36172b2e0cd86ffffd1d0ed2deb75972db72.zip
Remove unused task_exit function
Issue #236
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 57b5d16e427..b861c60b521 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -138,18 +138,6 @@ struct rust_closure_env {
 };
 
 extern "C" CDECL
-void task_exit(rust_closure_env *env, int rval, rust_task *task) {
-    LOG(task, task, "task exited with value %d", rval);
-    if(env) {
-        // free the environment.
-        I(task->sched, 1 == env->ref_count); // the ref count better be 1
-        //env->td->drop_glue(NULL, task, NULL, env->td->first_param, env);
-        //env->td->free_glue(NULL, task, NULL, env->td->first_param, env);
-        task->free(env);
-    }
-}
-
-extern "C" CDECL
 void task_start_wrapper(spawn_args *a)
 {
     rust_task *task = a->task;