Skip to content

Commit 6f6f361

Browse files
committed
Remove unused task_exit function
Issue #236
1 parent 1181943 commit 6f6f361

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/rt/rust_task.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,6 @@ struct rust_closure_env {
137137
type_desc *td;
138138
};
139139

140-
extern "C" CDECL
141-
void task_exit(rust_closure_env *env, int rval, rust_task *task) {
142-
LOG(task, task, "task exited with value %d", rval);
143-
if(env) {
144-
// free the environment.
145-
I(task->sched, 1 == env->ref_count); // the ref count better be 1
146-
//env->td->drop_glue(NULL, task, NULL, env->td->first_param, env);
147-
//env->td->free_glue(NULL, task, NULL, env->td->first_param, env);
148-
task->free(env);
149-
}
150-
}
151-
152140
extern "C" CDECL
153141
void task_start_wrapper(spawn_args *a)
154142
{

0 commit comments

Comments
 (0)