Skip to content

Commit f8c4d99

Browse files
committed
std: Remove weak_task API. Unused
1 parent a637db2 commit f8c4d99

File tree

4 files changed

+0
-226
lines changed

4 files changed

+0
-226
lines changed

src/libstd/unstable/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub mod dynamic_lib;
2222

2323
pub mod global;
2424
pub mod finally;
25-
pub mod weak_task;
2625
pub mod intrinsics;
2726
pub mod simd;
2827
pub mod extfmt;

src/libstd/unstable/weak_task.rs

-211
This file was deleted.

src/rt/rust_builtin.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -769,18 +769,6 @@ rust_get_global_data_ptr() {
769769
return &task->kernel->global_data;
770770
}
771771

772-
extern "C" void
773-
rust_inc_kernel_live_count() {
774-
rust_task *task = rust_get_current_task();
775-
task->kernel->inc_live_count();
776-
}
777-
778-
extern "C" void
779-
rust_dec_kernel_live_count() {
780-
rust_task *task = rust_get_current_task();
781-
task->kernel->dec_live_count();
782-
}
783-
784772
#ifndef _WIN32
785773
#include <sys/types.h>
786774
#include <dirent.h>

src/rt/rustrt.def.in

-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ rust_raw_thread_start
216216
rust_raw_thread_join_delete
217217
rust_register_exit_function
218218
rust_get_global_data_ptr
219-
rust_inc_kernel_live_count
220-
rust_dec_kernel_live_count
221219
rust_get_rt_tls_key
222220
swap_registers
223221
rust_readdir

0 commit comments

Comments
 (0)