Skip to content

Commit bd2ec03

Browse files
committed
Remove unused logging upcalls from runtime
1 parent e57435f commit bd2ec03

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

src/rt/rust_upcall.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,6 @@ upcall_grow_task(rust_task *task, size_t n_frame_bytes) {
2727
task->grow(n_frame_bytes);
2828
}
2929

30-
extern "C" CDECL
31-
void upcall_log_int(rust_task *task, uint32_t level, int32_t i) {
32-
LOG_UPCALL_ENTRY(task);
33-
if (task->sched->log_lvl >= level)
34-
task->sched->log(task, level, "rust: %" PRId32 " (0x%" PRIx32 ")",
35-
i, i);
36-
}
37-
38-
extern "C" CDECL
39-
void upcall_log_float(rust_task *task, uint32_t level, float f) {
40-
LOG_UPCALL_ENTRY(task);
41-
if (task->sched->log_lvl >= level)
42-
task->sched->log(task, level, "rust: %12.12f", f);
43-
}
44-
45-
extern "C" CDECL
46-
void upcall_log_double(rust_task *task, uint32_t level, double *f) {
47-
LOG_UPCALL_ENTRY(task);
48-
if (task->sched->log_lvl >= level)
49-
task->sched->log(task, level, "rust: %12.12f", *f);
50-
}
51-
5230
extern "C" CDECL void
5331
upcall_yield(rust_task *task) {
5432
LOG_UPCALL_ENTRY(task);

src/rt/rustrt.def.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ upcall_grow_task
7979
upcall_vec_grow
8080
upcall_vec_push
8181
upcall_kill
82-
upcall_log_double
83-
upcall_log_float
84-
upcall_log_int
8582
upcall_log_type
8683
upcall_malloc
8784
upcall_shared_malloc

0 commit comments

Comments
 (0)