Skip to content

Commit d52888f

Browse files
committed
rt: Remove rust_task::yield. Unused
1 parent 5e9f9e8 commit d52888f

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/rt/rust_task.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,6 @@ rust_task::grow(size_t n_frame_bytes)
269269

270270
}
271271

272-
void
273-
rust_task::yield() {
274-
yield(0);
275-
}
276-
277272
// Only run this on the rust stack
278273
void
279274
rust_task::yield(size_t time_in_us) {

src/rt/rust_task.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
164164
// Print a backtrace, if the "bt" logging option is on.
165165
void backtrace();
166166

167-
// Save callee-saved registers and return to the main loop.
168-
void yield();
169-
170167
// Yields for a specified duration of time.
171168
void yield(size_t time_in_ms);
172169

0 commit comments

Comments
 (0)