about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-08 01:33:38 -0700
committerbors <bors@rust-lang.org>2013-05-08 01:33:38 -0700
commite6529c36af56eedf01dc5db29f9f6408f07e97c3 (patch)
tree3355031fb470acc4daffb6807a05e1fb58b5398a /src/rt/rust_kernel.cpp
parent625e518ffefaacb95c9bdc0544bc5771cc7a0928 (diff)
parent3b6a32d7c90805dab8c08f6969249ac01bce875a (diff)
downloadrust-e6529c36af56eedf01dc5db29f9f6408f07e97c3.tar.gz
rust-e6529c36af56eedf01dc5db29f9f6408f07e97c3.zip
auto merge of #6307 : brson/rust/rng2, r=brson
Closes #6280
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp19
1 files changed, 0 insertions, 19 deletions
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);