diff options
Diffstat (limited to 'src/libstd/sys.rs')
| -rw-r--r-- | src/libstd/sys.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs index 0299ca0b49a..0f38671bfc2 100644 --- a/src/libstd/sys.rs +++ b/src/libstd/sys.rs @@ -13,22 +13,12 @@ #[allow(missing_doc)]; use c_str::ToCStr; -use cast; use libc::size_t; use libc; use repr; use rt::task; use str; -/// Returns the refcount of a shared box (as just before calling this) -#[inline] -pub fn refcount<T>(t: @T) -> uint { - unsafe { - let ref_ptr: *uint = cast::transmute_copy(&t); - *ref_ptr - 1 - } -} - pub fn log_str<T>(t: &T) -> ~str { use rt::io; use rt::io::Decorator; |
