From c1b075d042cabb90f804f3d73e6a4f4b512aa697 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 3 Feb 2012 09:34:42 +0100 Subject: Remove experimental GC code It's been sitting unused long enough to have bitrotted completely. --- src/libcore/sys.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/sys.rs b/src/libcore/sys.rs index e8fc38da0e0..40b50c1ad4b 100644 --- a/src/libcore/sys.rs +++ b/src/libcore/sys.rs @@ -17,7 +17,6 @@ native mod rustrt { // visible-in-crate, but not re-exported. fn last_os_error() -> str; fn refcount(t: @T) -> ctypes::intptr_t; - fn do_gc(); fn unsupervise(); fn shape_log_str(t: *sys::type_desc, data: T) -> str; fn rust_set_exit_status(code: ctypes::intptr_t); @@ -74,15 +73,6 @@ fn refcount(t: @T) -> uint { ret rustrt::refcount::(t); } -/* -Function: do_gc - -Force a garbage collection -*/ -fn do_gc() -> () { - ret rustrt::do_gc(); -} - // FIXME: There's a wrapper for this in the task module and this really // just belongs there fn unsupervise() -> () { -- cgit 1.4.1-3-g733a5