| Index: runtime/bin/platform_win.cc
|
| diff --git a/runtime/bin/platform_win.cc b/runtime/bin/platform_win.cc
|
| index b0e8eabb1e78c9126fe2bcca2f76107c7c18a0f3..0c35910e9ca47d8b52d67df914d62c7a9d9c2795 100644
|
| --- a/runtime/bin/platform_win.cc
|
| +++ b/runtime/bin/platform_win.cc
|
| @@ -181,29 +181,24 @@ bool Platform::Initialize() {
|
| return true;
|
| }
|
|
|
| -
|
| int Platform::NumberOfProcessors() {
|
| SYSTEM_INFO info;
|
| GetSystemInfo(&info);
|
| return info.dwNumberOfProcessors;
|
| }
|
|
|
| -
|
| const char* Platform::OperatingSystem() {
|
| return "windows";
|
| }
|
|
|
| -
|
| const char* Platform::LibraryPrefix() {
|
| return "";
|
| }
|
|
|
| -
|
| const char* Platform::LibraryExtension() {
|
| return "dll";
|
| }
|
|
|
| -
|
| const char* Platform::LocaleName() {
|
| wchar_t locale_name[LOCALE_NAME_MAX_LENGTH];
|
| int result = GetUserDefaultLocaleName(locale_name, LOCALE_NAME_MAX_LENGTH);
|
| @@ -213,7 +208,6 @@ const char* Platform::LocaleName() {
|
| return StringUtilsWin::WideToUtf8(locale_name);
|
| }
|
|
|
| -
|
| bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
|
| #if defined(DART_IO_DISABLED) || defined(PLATFORM_DISABLE_SOCKET)
|
| return false;
|
| @@ -225,7 +219,6 @@ bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
|
| #endif
|
| }
|
|
|
| -
|
| char** Platform::Environment(intptr_t* count) {
|
| wchar_t* strings = GetEnvironmentStringsW();
|
| if (strings == NULL) {
|
| @@ -258,12 +251,10 @@ char** Platform::Environment(intptr_t* count) {
|
| return result;
|
| }
|
|
|
| -
|
| const char* Platform::GetExecutableName() {
|
| return executable_name_;
|
| }
|
|
|
| -
|
| const char* Platform::ResolveExecutablePath() {
|
| // GetModuleFileNameW cannot directly provide information on the
|
| // required buffer size, so start out with a buffer large enough to
|
| @@ -284,7 +275,6 @@ const char* Platform::ResolveExecutablePath() {
|
| return canon_path;
|
| }
|
|
|
| -
|
| void Platform::Exit(int exit_code) {
|
| // TODO(zra): Remove once VM shuts down cleanly.
|
| ::dart::private_flag_windows_run_tls_destructors = false;
|
|
|