From 6c87c342775e4e4e4cef927adac5fc625d1faa31 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 5 Mar 2012 15:50:01 -0800 Subject: Remove dead code from rt (debug_obj, rust_obj, rust_closure, rust_box_obj, rust_vtable) --- src/libstd/dbg.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/dbg.rs b/src/libstd/dbg.rs index e1f82fedda0..f37a97bcb42 100644 --- a/src/libstd/dbg.rs +++ b/src/libstd/dbg.rs @@ -14,8 +14,6 @@ native mod rustrt { fn debug_opaque(td: *sys::type_desc, x: T); fn debug_box(td: *sys::type_desc, x: @T); fn debug_tag(td: *sys::type_desc, x: T); - fn debug_obj(td: *sys::type_desc, x: T, - nmethods: ctypes::size_t, nbytes: ctypes::size_t); fn debug_fn(td: *sys::type_desc, x: T); fn debug_ptrcast(td: *sys::type_desc, x: @T) -> @U; } @@ -36,20 +34,6 @@ fn debug_tag(x: T) { rustrt::debug_tag::(sys::get_type_desc::(), x); } - -/** - * `nmethods` is the number of methods we expect the object to have. The - * runtime will print this many words of the obj vtbl). - * - * `nbytes` is the number of bytes of body data we expect the object to have. - * The runtime will print this many bytes of the obj body. You probably want - * this to at least be 4u, since an implicit captured tydesc pointer sits in - * the front of any obj's data tuple.x - */ -fn debug_obj(x: T, nmethods: uint, nbytes: uint) { - rustrt::debug_obj::(sys::get_type_desc::(), x, nmethods, nbytes); -} - fn debug_fn(x: T) { rustrt::debug_fn::(sys::get_type_desc::(), x); } -- cgit 1.4.1-3-g733a5