Skip to content

Commit 5722adf

Browse files
[flutter_tools] remove deprecation warning on flutter format (flutter#58817)
So that we have a release where both are available without a deprecation warning.
1 parent b749a50 commit 5722adf

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

packages/flutter_tools/lib/src/commands/format.dart

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ class FormatCommand extends FlutterCommand {
3535
@override
3636
Future<FlutterCommandResult> runCommand() async {
3737
final String dartBinary = globals.artifacts.getArtifactPath(Artifact.engineDartBinary);
38-
globals.printError(
39-
'"flutter format" is deprecated and will be removed in a'
40-
' future release, use "dart format" instead.'
41-
);
4238
final List<String> command = <String>[
4339
dartBinary,
4440
'format',

packages/flutter_tools/test/general.shard/commands/format_test.dart

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ void main() {
1919
..addCommand(FormatCommand());
2020
await runner.run(<String>['format', 'a', 'b', 'c']);
2121

22-
expect(testLogger.errorText, contains('"flutter format" is deprecated'));
2322
expect((globals.processManager as FakeProcessManager).hasRemainingExpectations, false);
2423
}, overrides: <Type, Generator>{
2524
FileSystem: () => MemoryFileSystem.test(),

0 commit comments

Comments
 (0)