Skip to content

Commit 759e1c1

Browse files
committed
rt: Remove unused string upcalls harder
1 parent 8d93216 commit 759e1c1

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

src/rt/rust_upcall.cpp

-31
Original file line numberDiff line numberDiff line change
@@ -311,37 +311,6 @@ upcall_validate_box(rust_opaque_box* ptr) {
311311

312312
/**********************************************************************/
313313

314-
struct s_str_new_uniq_args {
315-
rust_task *task;
316-
const char *cstr;
317-
size_t len;
318-
rust_str *retval;
319-
};
320-
321-
extern "C" CDECL void
322-
upcall_s_str_new_uniq(s_str_new_uniq_args *args) {
323-
rust_task *task = args->task;
324-
LOG_UPCALL_ENTRY(task);
325-
args->retval = make_str(task->kernel, args->cstr, args->len,
326-
"str_new_uniq");
327-
}
328-
329-
extern "C" CDECL rust_str*
330-
upcall_str_new_uniq(const char *cstr, size_t len) {
331-
rust_task *task = rust_get_current_task();
332-
s_str_new_uniq_args args = { task, cstr, len, 0 };
333-
UPCALL_SWITCH_STACK(task, &args, upcall_s_str_new_uniq);
334-
return args.retval;
335-
}
336-
337-
extern "C" CDECL rust_str*
338-
upcall_str_new(const char *cstr, size_t len) {
339-
rust_task *task = rust_get_current_task();
340-
s_str_new_uniq_args args = { task, cstr, len, 0 };
341-
UPCALL_SWITCH_STACK(task, &args, upcall_s_str_new_uniq);
342-
return args.retval;
343-
}
344-
345314
extern "C" _Unwind_Reason_Code
346315
__gxx_personality_v0(int version,
347316
_Unwind_Action actions,

src/rt/rustrt.def.in

-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ upcall_validate_box
7979
upcall_log_type
8080
upcall_malloc
8181
upcall_rust_personality
82-
upcall_str_new_uniq
83-
upcall_str_new_shared
8482
upcall_call_shim_on_c_stack
8583
upcall_call_shim_on_rust_stack
8684
upcall_new_stack

0 commit comments

Comments
 (0)