Skip to content

Commit 5e0e32f

Browse files
committed
rt: Remove drop_port. Unused
1 parent 5d1e321 commit 5e0e32f

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/lib/comm.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ native "cdecl" mod rustrt {
4444

4545
fn new_port(unit_sz: uint) -> *rust_port;
4646
fn del_port(po: *rust_port);
47-
fn drop_port(po: *rust_port);
4847
fn get_port_id(po: *rust_port) -> port_id;
4948
}
5049

@@ -77,7 +76,6 @@ tag chan<uniq T> {
7776
}
7877

7978
resource port_ptr(po: *rustrt::rust_port) {
80-
rustrt::drop_port(po);
8179
rustrt::del_port(po);
8280
}
8381

src/rt/rust_builtin.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,6 @@ get_port_id(rust_port *port) {
479479
return port->id;
480480
}
481481

482-
extern "C" CDECL
483-
void drop_port(rust_port *port) {
484-
}
485-
486482
extern "C" CDECL void
487483
chan_id_send(type_desc *t, rust_task_id target_task_id,
488484
rust_port_id target_port_id, void *sptr) {

src/rt/rustrt.def.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ debug_ptrcast
1010
debug_tag
1111
debug_tydesc
1212
do_gc
13-
drop_port
1413
drop_task
1514
get_port_id
1615
get_task_id

0 commit comments

Comments
 (0)