[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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user