mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Removed unused method packagesFile
from ApplicationPackage
. (#95033)
The method name is confusing and the implementation in different subclasses are pointing to different things.
This commit is contained in:
parent
9de8849905
commit
5cb09e779a
@ -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', () {
|
||||
|
Loading…
Reference in New Issue
Block a user