Unverified Commit 5cb09e77 authored by Lau Ching Jun's avatar Lau Ching Jun Committed by GitHub

Removed unused method `packagesFile` from `ApplicationPackage`. (#95033)

The method name is confusing and the implementation in different
subclasses are pointing to different things.
parent 9de88499
......@@ -203,9 +203,6 @@ class AndroidApk extends ApplicationPackage {
);
}
@override
File get packagesFile => file;
@override
String get name => file.basename;
}
......
......@@ -28,8 +28,6 @@ abstract class ApplicationPackage {
String? get displayName => name;
File? get packagesFile => null;
@override
String toString() => displayName ?? id;
}
......@@ -36,9 +36,6 @@ class FlutterTesterApp extends ApplicationPackage {
@override
String get name => _directory.basename;
@override
File get packagesFile => _directory.childFile('.packages');
}
/// The device interface for running on the flutter_tester shell.
......
......@@ -36,7 +36,6 @@ void main() {
final FlutterTesterApp app = FlutterTesterApp.fromCurrentDirectory(fileSystem);
expect(app.name, 'my_project');
expect(app.packagesFile.path, fileSystem.path.join(projectPath, '.packages'));
});
group('FlutterTesterDevices', () {
......
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