[flutter_tools] remove deprecation warning on flutter format (#58817)

So that we have a release where both are available without a deprecation warning.
This commit is contained in:
Jonah Williams
2020-06-05 12:40:02 -07:00
committed by GitHub
parent b749a50a73
commit 5722adf11d
2 changed files with 0 additions and 5 deletions

View File

@@ -35,10 +35,6 @@ class FormatCommand extends FlutterCommand {
@override
Future<FlutterCommandResult> runCommand() async {
final String dartBinary = globals.artifacts.getArtifactPath(Artifact.engineDartBinary);
globals.printError(
'"flutter format" is deprecated and will be removed in a'
' future release, use "dart format" instead.'
);
final List<String> command = <String>[
dartBinary,
'format',

View File

@@ -19,7 +19,6 @@ void main() {
..addCommand(FormatCommand());
await runner.run(<String>['format', 'a', 'b', 'c']);
expect(testLogger.errorText, contains('"flutter format" is deprecated'));
expect((globals.processManager as FakeProcessManager).hasRemainingExpectations, false);
}, overrides: <Type, Generator>{
FileSystem: () => MemoryFileSystem.test(),