From 4cd51c416b8cf1a9d89089c99b8a1e2ac2f7255a Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 6 May 2013 16:29:54 -0700 Subject: rt: Move win32_require out of the rust_kernel type This is only used on rust_rng, which I am trying to extricate from the kernel. --- src/rt/rust_kernel.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/rt/rust_kernel.cpp') diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index 761dbeade53..bf48554696e 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -257,25 +257,6 @@ rust_kernel::generate_task_id() { return id; } -#ifdef __WIN32__ -void -rust_kernel::win32_require(LPCTSTR fn, BOOL ok) { - if (!ok) { - LPTSTR buf; - DWORD err = GetLastError(); - FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | - FORMAT_MESSAGE_FROM_SYSTEM | - FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, err, - MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPTSTR) &buf, 0, NULL ); - KLOG_ERR_(dom, "%s failed with error %ld: %s", fn, err, buf); - LocalFree((HLOCAL)buf); - assert(ok); - } -} -#endif - void rust_kernel::set_exit_status(int code) { scoped_lock with(rval_lock); -- cgit 1.4.1-3-g733a5