From 88593fc3fc808e78dd89be95c997c94ba4c816da Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 1 Oct 2013 11:38:55 -0700 Subject: Document logging and remove old functions This adds a large doc-block to the top of the std::logging module explaining how to use it. This is mostly just making sure that all the information in the manual's section about logging is also here (in case someone decides to look into this module first). This also removes the old console_{on,off} methods. As far as I can tell, the functions were only used by the compiler, and there's no reason for them to be used because they're all turned off by default anyway (maybe they were turned on by default at some point...) I believe that this is the final nail in the coffin and closes #5021 --- src/rt/rust_builtin.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index eeb0c95337a..f27107d372d 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -326,27 +326,6 @@ rust_mktime(rust_tm* timeptr) { return mktime(&t); } -static lock_and_signal log_lock; -static bool log_to_console = true; - -extern "C" CDECL void -rust_log_console_on() { - scoped_lock with(log_lock); - log_to_console = true; -} - -extern "C" CDECL void -rust_log_console_off() { - scoped_lock with(log_lock); - log_to_console = false; -} - -extern "C" CDECL uintptr_t -rust_should_log_console() { - scoped_lock with(log_lock); - return log_to_console; -} - extern "C" lock_and_signal* rust_create_little_lock() { return new lock_and_signal(); -- cgit 1.4.1-3-g733a5