Index: src/flags.cc |
diff --git a/src/flags.cc b/src/flags.cc |
index 75e66ce34d5ab5ae72905357c05ab221752b0d37..5720cbda346b00993b8caa00335cc125ae672321 100644 |
--- a/src/flags.cc |
+++ b/src/flags.cc |
@@ -411,7 +411,7 @@ int FlagList::SetFlagsFromCommandLine(int* argc, |
for (int k = i; k < *argc; k++) { |
js_argv[k - start_pos] = StrDup(argv[k]); |
} |
- *flag->args_variable() = JSArguments(js_argc, js_argv); |
+ *flag->args_variable() = JSArguments::Create(js_argc, js_argv); |
i = *argc; // Consume all arguments |
break; |
} |
@@ -534,19 +534,6 @@ void FlagList::PrintHelp() { |
} |
} |
-JSArguments::JSArguments() |
- : argc_(0), argv_(NULL) {} |
-JSArguments::JSArguments(int argc, const char** argv) |
- : argc_(argc), argv_(argv) {} |
-int JSArguments::argc() const { return argc_; } |
-const char** JSArguments::argv() { return argv_; } |
-const char*& JSArguments::operator[](int idx) { return argv_[idx]; } |
-JSArguments& JSArguments::operator=(JSArguments args) { |
- argc_ = args.argc_; |
- argv_ = args.argv_; |
- return *this; |
-} |
- |
void FlagList::EnforceFlagImplications() { |
#define FLAG_MODE_DEFINE_IMPLICATIONS |