提交 bd2ec037 编写于 作者: M Marijn Haverbeke

Remove unused logging upcalls from runtime

上级 e57435f6
......@@ -27,28 +27,6 @@ upcall_grow_task(rust_task *task, size_t n_frame_bytes) {
task->grow(n_frame_bytes);
}
extern "C" CDECL
void upcall_log_int(rust_task *task, uint32_t level, int32_t i) {
LOG_UPCALL_ENTRY(task);
if (task->sched->log_lvl >= level)
task->sched->log(task, level, "rust: %" PRId32 " (0x%" PRIx32 ")",
i, i);
}
extern "C" CDECL
void upcall_log_float(rust_task *task, uint32_t level, float f) {
LOG_UPCALL_ENTRY(task);
if (task->sched->log_lvl >= level)
task->sched->log(task, level, "rust: %12.12f", f);
}
extern "C" CDECL
void upcall_log_double(rust_task *task, uint32_t level, double *f) {
LOG_UPCALL_ENTRY(task);
if (task->sched->log_lvl >= level)
task->sched->log(task, level, "rust: %12.12f", *f);
}
extern "C" CDECL void
upcall_yield(rust_task *task) {
LOG_UPCALL_ENTRY(task);
......
......@@ -79,9 +79,6 @@ upcall_grow_task
upcall_vec_grow
upcall_vec_push
upcall_kill
upcall_log_double
upcall_log_float
upcall_log_int
upcall_log_type
upcall_malloc
upcall_shared_malloc
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册