diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-06-28 11:34:20 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-06-28 16:12:33 -0700 |
| commit | 02f6645fca946fd7cb9f55036c05a908f0567ceb (patch) | |
| tree | 88d71ff1fd10f3f8312f2c8a1041d7eeaf0251e4 /src/rt/rust_dom.cpp | |
| parent | 2f84987a48c3625670cd62321f0e3dcb5c0e8768 (diff) | |
| download | rust-02f6645fca946fd7cb9f55036c05a908f0567ceb.tar.gz rust-02f6645fca946fd7cb9f55036c05a908f0567ceb.zip | |
Moved win32_require to the kernel.
Diffstat (limited to 'src/rt/rust_dom.cpp')
| -rw-r--r-- | src/rt/rust_dom.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/rt/rust_dom.cpp b/src/rt/rust_dom.cpp index d89cb181fb8..ac3c3a82a40 100644 --- a/src/rt/rust_dom.cpp +++ b/src/rt/rust_dom.cpp @@ -74,25 +74,6 @@ rust_dom::fail() { rval = 1; } -#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 ); - DLOG_ERR(this, dom, "%s failed with error %ld: %s", fn, err, buf); - LocalFree((HLOCAL)buf); - I(this, ok); - } -} -#endif - size_t rust_dom::number_of_live_tasks() { return running_tasks.length() + blocked_tasks.length(); |
