Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1432)

Unified Diff: runtime/bin/platform.cc

Issue 1839463002: Really remove io support when dart:io is unsupported. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/platform.cc
diff --git a/runtime/bin/platform.cc b/runtime/bin/platform.cc
index 716ef2932933027b638fd1031e1d3243151886f2..2099ebb7b4edc3cfa6182c93a2d04a3fc591ce5c 100644
--- a/runtime/bin/platform.cc
+++ b/runtime/bin/platform.cc
@@ -2,21 +2,17 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#include "bin/platform.h"
+#if !defined(DART_IO_DISABLED)
-#include "include/dart_api.h"
+#include "bin/platform.h"
#include "bin/file.h"
#include "bin/utils.h"
+#include "include/dart_api.h"
namespace dart {
namespace bin {
-const char* Platform::executable_name_ = NULL;
-char* Platform::resolved_executable_name_ = NULL;
-int Platform::script_index_ = 1;
-char** Platform::argv_ = NULL;
-
void FUNCTION_NAME(Platform_NumberOfProcessors)(Dart_NativeArguments args) {
Dart_SetReturnValue(args, Dart_NewInteger(Platform::NumberOfProcessors()));
}
@@ -125,3 +121,5 @@ void FUNCTION_NAME(Platform_GetVersion)(Dart_NativeArguments args) {
} // namespace bin
} // namespace dart
+
+#endif // !defined(DART_IO_DISABLED)
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform_android.cc » ('j') | runtime/bin/socket.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698