rt: Remove new_chan. Not needed

This commit is contained in:
Brian Anderson
2011-11-10 15:59:31 -08:00
parent 0dc8387995
commit 08d0ff38bc
3 changed files with 3 additions and 16 deletions

View File

@@ -484,18 +484,6 @@ get_port_id(rust_port *port) {
return port->id;
}
extern "C" CDECL rust_chan*
new_chan(rust_port *port) {
rust_task *task = rust_scheduler::get_task();
rust_scheduler *sched = task->sched;
LOG(task, comm, "new_chan("
"task=0x%" PRIxPTR " (%s), port=0x%" PRIxPTR ")",
(uintptr_t) task, task->name, port);
I(sched, port);
return new (task->kernel, "rust_chan")
rust_chan(task->kernel, port, port->unit_sz);
}
extern "C" CDECL
void del_chan(rust_chan *chan) {
rust_task *task = rust_scheduler::get_task();