From 6f6f36172b2e0cd86ffffd1d0ed2deb75972db72 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 8 Sep 2011 10:37:52 -0700 Subject: Remove unused task_exit function Issue #236 --- src/rt/rust_task.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/rt/rust_task.cpp') 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 @@ -137,18 +137,6 @@ struct rust_closure_env { type_desc *td; }; -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) { -- cgit 1.4.1-3-g733a5