about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-10 15:59:31 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-10 15:59:31 -0800
commit08d0ff38bc6efe2915b877dfec443a3d7853831b (patch)
tree8e494a49ff43013c07a403abcd8dfae4a7b78dbe /src/rt/rust_builtin.cpp
parent0dc83879958ed008b4be9decf2efaa2be6c7eea3 (diff)
downloadrust-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.cpp12
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();