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

Unified Diff: runtime/bin/main.cc

Issue 52903002: Remove dart:io Options class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | sdk/lib/io/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 59501a952700fcd561ef120d1c5238f5a4682651..6dbdd62f9789edfa41f920c9e652a0ff31f43461 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -392,37 +392,6 @@ static Dart_Handle CreateRuntimeOptions(CommandLineOptions* options) {
}
-static Dart_Handle SetupRuntimeOptions(CommandLineOptions* options) {
- Dart_Handle dart_arguments = CreateRuntimeOptions(options);
- if (Dart_IsError(dart_arguments)) {
- return dart_arguments;
- }
- Dart_Handle io_lib_url = DartUtils::NewString("dart:io");
- if (Dart_IsError(io_lib_url)) {
- return io_lib_url;
- }
- Dart_Handle io_lib = Dart_LookupLibrary(io_lib_url);
- if (Dart_IsError(io_lib)) {
- return io_lib;
- }
- Dart_Handle runtime_options_class_name = DartUtils::NewString("_OptionsImpl");
- if (Dart_IsError(runtime_options_class_name)) {
- return runtime_options_class_name;
- }
- Dart_Handle runtime_options_type = Dart_GetType(
- io_lib, runtime_options_class_name, 0, NULL);
- if (Dart_IsError(runtime_options_type)) {
- return runtime_options_type;
- }
- Dart_Handle native_name = DartUtils::NewString("_nativeArguments");
- if (Dart_IsError(native_name)) {
- return native_name;
- }
-
- return Dart_SetField(runtime_options_type, native_name, dart_arguments);
-}
-
-
#define CHECK_RESULT(result) \
if (Dart_IsError(result)) { \
*error = strdup(Dart_GetError(result)); \
@@ -861,11 +830,6 @@ int main(int argc, char** argv) {
}
}
- // Create a dart options object that can be accessed from dart code.
- Dart_Handle options_result = SetupRuntimeOptions(&dart_options);
- if (Dart_IsError(options_result)) {
- return DartErrorExit(options_result);
- }
// Lookup the library of the root script.
Dart_Handle library = Dart_RootLibrary();
if (Dart_IsNull(library)) {
« no previous file with comments | « no previous file | sdk/lib/io/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698