This reverts commit 1cb0a24a46.
This commit is contained in:
@@ -128,9 +128,6 @@ abstract class FlutterCommand extends Command<void> {
|
||||
/// The option name for a custom observatory port.
|
||||
static const String observatoryPortOption = 'observatory-port';
|
||||
|
||||
/// The option name for a custom DevTools server address.
|
||||
static const String kDevToolsServerAddress = 'devtools-server-address';
|
||||
|
||||
/// The flag name for whether or not to use ipv6.
|
||||
static const String ipv6Flag = 'ipv6';
|
||||
|
||||
@@ -325,13 +322,6 @@ abstract class FlutterCommand extends Command<void> {
|
||||
_usesPortOption = true;
|
||||
}
|
||||
|
||||
void addDevToolsOptions() {
|
||||
argParser.addOption(kDevToolsServerAddress,
|
||||
help: 'When this value is provided, the Flutter tool will not spin up a '
|
||||
'new DevTools server instance, but instead will use the one provided '
|
||||
'at this address.');
|
||||
}
|
||||
|
||||
void addDdsOptions({@required bool verboseHelp}) {
|
||||
argParser.addOption('dds-port',
|
||||
help: 'When this value is provided, the Dart Development Service (DDS) will be '
|
||||
@@ -375,16 +365,6 @@ abstract class FlutterCommand extends Command<void> {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Uri get devToolsServerAddress {
|
||||
if (argResults.wasParsed(kDevToolsServerAddress)) {
|
||||
final Uri uri = Uri.tryParse(stringArg(kDevToolsServerAddress));
|
||||
if (uri != null && uri.host.isNotEmpty && uri.port != 0) {
|
||||
return uri;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Gets the vmservice port provided to in the 'observatory-port' or
|
||||
/// 'host-vmservice-port option.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user