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

Unified Diff: runtime/observatory/lib/src/elements/debugger.dart

Issue 2759533002: Remove legacy restart code (Closed)
Patch Set: asiva review Created 3 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
« no previous file with comments | « runtime/lib/vmservice.cc ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/debugger.dart
diff --git a/runtime/observatory/lib/src/elements/debugger.dart b/runtime/observatory/lib/src/elements/debugger.dart
index 94f47adcc532c48747f5dfe32aab806262472e11..dada6923c1fd537c613627a75ca97af496b6382d 100644
--- a/runtime/observatory/lib/src/elements/debugger.dart
+++ b/runtime/observatory/lib/src/elements/debugger.dart
@@ -1242,39 +1242,12 @@ class VmNameCommand extends DebuggerCommand {
'Syntax: vm name <name>\n';
}
-class VmRestartCommand extends DebuggerCommand {
- VmRestartCommand(Debugger debugger) : super(debugger, 'restart', []);
-
- Future handleModalInput(String line) async {
- if (line == 'yes') {
- debugger.console.printRed('Restarting VM...');
- await debugger.vm.restart();
- debugger.input.exitMode();
- } else if (line == 'no') {
- debugger.console.printRed('VM restart canceled.');
- debugger.input.exitMode();
- } else {
- debugger.console.printRed("Please type 'yes' or 'no'");
- }
- }
-
- Future run(List<String> args) async {
- debugger.input.enterMode('Restart vm? (yes/no)', handleModalInput);
- }
-
- String helpShort = 'Restart a Dart virtual machine';
-
- String helpLong = 'Restart a Dart virtual machine.\n'
- '\n'
- 'Syntax: vm restart\n';
-}
class VmCommand extends DebuggerCommand {
VmCommand(Debugger debugger)
: super(debugger, 'vm', [
new VmListCommand(debugger),
new VmNameCommand(debugger),
- new VmRestartCommand(debugger),
]);
Future run(List<String> args) async {
« no previous file with comments | « runtime/lib/vmservice.cc ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698