diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-07-31 23:12:20 -0700 | 
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-08-09 16:45:50 -0700 | 
| commit | b75915d0ca20c6d066a7368ad53491a55a5a57d2 (patch) | |
| tree | d4f4a08c262940345b2cd5a1a223772f6aefb985 /src/libstd/cleanup.rs | |
| parent | d39255616004ea43dfabcf33b20ed2a80cd31dff (diff) | |
| download | rust-b75915d0ca20c6d066a7368ad53491a55a5a57d2.tar.gz rust-b75915d0ca20c6d066a7368ad53491a55a5a57d2.zip | |
Remove the C++ runtime. Sayonara
Diffstat (limited to 'src/libstd/cleanup.rs')
| -rw-r--r-- | src/libstd/cleanup.rs | 19 | 
1 files changed, 1 insertions, 18 deletions
| diff --git a/src/libstd/cleanup.rs b/src/libstd/cleanup.rs index b9535091ed8..7c2348a3533 100644 --- a/src/libstd/cleanup.rs +++ b/src/libstd/cleanup.rs @@ -56,13 +56,8 @@ unsafe fn each_live_alloc(read_next_before: bool, #[cfg(unix)] fn debug_mem() -> bool { - use rt; - use rt::OldTaskContext; // XXX: Need to port the environment struct to newsched - match rt::context() { - OldTaskContext => ::rt::env::get().debug_mem, - _ => false - } + false } #[cfg(windows)] @@ -147,15 +142,3 @@ pub unsafe fn annihilate() { dbg.write_str("\n"); } } - -/// Bindings to the runtime -pub mod rustrt { - use libc::c_void; - - #[link_name = "rustrt"] - extern { - #[rust_stack] - // FIXME (#4386): Unable to make following method private. - pub fn rust_get_task() -> *c_void; - } -} | 
