Skip to content

Commit e2e4747

Browse files
author
Mark Vian
committed
rt: remove unused 'rust_compare_and_swap_ptr'. Closes #4836
1 parent 0c2b4ed commit e2e4747

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/rt/rust_builtin.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -776,12 +776,6 @@ rust_osmain_sched_id() {
776776
return task->kernel->osmain_sched_id();
777777
}
778778

779-
extern "C" CDECL bool
780-
rust_compare_and_swap_ptr(intptr_t *address,
781-
intptr_t oldval, intptr_t newval) {
782-
return sync::compare_and_swap(address, oldval, newval);
783-
}
784-
785779
extern "C" void
786780
rust_task_inhibit_kill(rust_task *task) {
787781
task->inhibit_kill();

src/rt/rustrt.def.in

-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ rust_dbg_call
154154
rust_dbg_do_nothing
155155
rust_dbg_breakpoint
156156
rust_osmain_sched_id
157-
rust_compare_and_swap_ptr
158157
rust_task_inhibit_kill
159158
rust_task_allow_kill
160159
rust_task_inhibit_yield

0 commit comments

Comments
 (0)