Skip to content

Commit 7d47553

Browse files
committed
Remove task_unsupervise from rt builtin functions
This was an exact duplicate of the unsupervise function
1 parent ced8393 commit 7d47553

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/lib/task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ native "rust" mod rustrt {
22
fn task_sleep(uint time_in_us);
33
fn task_yield();
44
fn task_join(task t) -> int;
5-
fn task_unsupervise();
5+
fn unsupervise();
66
fn pin_task();
77
fn unpin_task();
88
}
@@ -33,7 +33,7 @@ fn join(task t) -> task_result {
3333
}
3434

3535
fn unsupervise() {
36-
ret rustrt::task_unsupervise();
36+
ret rustrt::unsupervise();
3737
}
3838

3939
fn pin() {

src/rt/rust_builtin.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,6 @@ task_join(rust_task *task, rust_task *join_task) {
430430
}
431431
}
432432

433-
extern "C" CDECL void
434-
task_unsupervise(rust_task *task) {
435-
task->unsupervise();
436-
}
437-
438433
/* Debug builtins for std.dbg. */
439434

440435
static void

src/rt/rustrt.def.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ str_vec
5050
task_sleep
5151
task_yield
5252
task_join
53-
task_unsupervise
5453
unsafe_vec_to_mut
5554
unsupervise
5655
upcall_clone_chan

0 commit comments

Comments
 (0)