From d52888f0badf05e183368ac6ba221691e8e2a130 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 17 Nov 2011 15:27:50 -0800 Subject: [PATCH] rt: Remove rust_task::yield. Unused --- src/rt/rust_task.cpp | 5 ----- src/rt/rust_task.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 28ca9787880..d6c981b9df2 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -269,11 +269,6 @@ rust_task::grow(size_t n_frame_bytes) } -void -rust_task::yield() { - yield(0); -} - // Only run this on the rust stack void rust_task::yield(size_t time_in_us) { diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 9311ba610a8..b54387e9293 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -164,9 +164,6 @@ rust_task : public kernel_owned, rust_cond // Print a backtrace, if the "bt" logging option is on. void backtrace(); - // Save callee-saved registers and return to the main loop. - void yield(); - // Yields for a specified duration of time. void yield(size_t time_in_ms);