diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-11-10 15:59:31 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-10 15:59:31 -0800 |
| commit | 08d0ff38bc6efe2915b877dfec443a3d7853831b (patch) | |
| tree | 8e494a49ff43013c07a403abcd8dfae4a7b78dbe /src/rt/rust_builtin.cpp | |
| parent | 0dc83879958ed008b4be9decf2efaa2be6c7eea3 (diff) | |
| download | rust-08d0ff38bc6efe2915b877dfec443a3d7853831b.tar.gz rust-08d0ff38bc6efe2915b877dfec443a3d7853831b.zip | |
rt: Remove new_chan. Not needed
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 36912ae428d..17cb801d575 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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(); |
