about summary refs log tree commit diff
path: root/src/rt/rust_dom.cpp
diff options
context:
space:
mode:
authorRoy Frostig <rfrostig@mozilla.com>2010-07-25 22:05:39 -0700
committerRoy Frostig <rfrostig@mozilla.com>2010-07-25 22:05:39 -0700
commitb9f82d85f91169619064faf159cd33b4d7b3f353 (patch)
tree7354fdeb708cbb4ab7a307286b4b89e17c1d6a8b /src/rt/rust_dom.cpp
parent5b6e714d05a0c96ade618256a67a9cb7f337f196 (diff)
downloadrust-b9f82d85f91169619064faf159cd33b4d7b3f353.tar.gz
rust-b9f82d85f91169619064faf159cd33b4d7b3f353.zip
Attempt number 1 at extinguishing the windows tree remotely (apologies to those hacking on Sunday evening PST).
Diffstat (limited to 'src/rt/rust_dom.cpp')
-rw-r--r--src/rt/rust_dom.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/rt/rust_dom.cpp b/src/rt/rust_dom.cpp
index 205084ff263..81751a867e8 100644
--- a/src/rt/rust_dom.cpp
+++ b/src/rt/rust_dom.cpp
@@ -154,25 +154,6 @@ rust_dom::free(void *p) {
     srv->free(p);
 }
 
-#ifdef __WIN32__
-void
-rust_dom::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 );
-        log(rust_log::ERR, "%s failed with error %ld: %s", fn, err, buf);
-        LocalFree((HLOCAL)buf);
-        I(this, ok);
-    }
-}
-#endif
-
 size_t
 rust_dom::n_live_tasks()
 {