Unverified Commit 5722adf1 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

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

So that we have a release where both are available without a deprecation warning.
parent b749a50a
......@@ -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',
......
......@@ -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(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment