about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index aac4212cac7..839a9231f45 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -213,16 +213,6 @@ upcall_dynastack_free(void *ptr) {
  * Allocates |nbytes| bytes in the C stack and returns a pointer to the start
  * of the allocated space.
  */
-extern "C" CDECL void *
-upcall_alloc_c_stack(size_t nbytes) {
-    rust_scheduler *sched = rust_scheduler::get_task()->sched;
-    return sched->c_context.alloc_stack(nbytes);
-}
-
-/**
- * Allocates |nbytes| bytes in the C stack and returns a pointer to the start
- * of the allocated space.
- */
 extern "C" CDECL void
 upcall_call_shim_on_c_stack(void *args, void *fn_ptr) {
     rust_scheduler *sched = rust_scheduler::get_task()->sched;