Skip to content

Commit f5c4ce7

Browse files
committed
rt: Remove del_chan, take_chan, drop_chan. Unused
1 parent e4f9808 commit f5c4ce7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/rt/rust_builtin.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -484,23 +484,6 @@ get_port_id(rust_port *port) {
484484
return port->id;
485485
}
486486

487-
extern "C" CDECL
488-
void del_chan(rust_chan *chan) {
489-
rust_task *task = rust_scheduler::get_task();
490-
LOG(task, comm, "del_chan(0x%" PRIxPTR ")", (uintptr_t) chan);
491-
I(task->sched, false);
492-
}
493-
494-
extern "C" CDECL
495-
void take_chan(rust_chan *chan) {
496-
chan->ref();
497-
}
498-
499-
extern "C" CDECL
500-
void drop_chan(rust_chan *chan) {
501-
chan->deref();
502-
}
503-
504487
extern "C" CDECL
505488
void drop_port(rust_port *port) {
506489
port->ref_count--;

0 commit comments

Comments
 (0)