mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
address unused element issues and new warnings (#12890)
* address unused element issues and new warnings * add a missing return
This commit is contained in:
parent
15601fe55c
commit
b6bd628bcd
@ -26,8 +26,6 @@ import 'adb.dart';
|
||||
import 'android.dart';
|
||||
import 'android_sdk.dart';
|
||||
|
||||
const String _defaultAdbPath = 'adb';
|
||||
|
||||
enum _HardwareType { emulator, physical }
|
||||
|
||||
/// Map to help our `isLocalEmulator` detection.
|
||||
|
||||
@ -24,9 +24,6 @@ import 'mac.dart';
|
||||
|
||||
const String _xcrunPath = '/usr/bin/xcrun';
|
||||
|
||||
/// Test device created by Flutter when no other device is available.
|
||||
const String _kFlutterTestDeviceSuffix = '(Flutter)';
|
||||
|
||||
class IOSSimulators extends PollingDeviceDiscovery {
|
||||
IOSSimulators() : super('iOS simulators');
|
||||
|
||||
|
||||
@ -7,9 +7,6 @@ import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/build_info.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
|
||||
const String _kBuildDirectory = '/build/app/outputs';
|
||||
|
||||
void main() {
|
||||
group('gradle project', () {
|
||||
GradleProject projectFrom(String properties) => new GradleProject.fromAppProperties(properties);
|
||||
|
||||
@ -64,8 +64,14 @@ void main() {
|
||||
return <String>[name, value];
|
||||
})
|
||||
.where((List<String> pair) => pair != null),
|
||||
key: (List<String> pair) => pair[0],
|
||||
value: (List<String> pair) => pair[1],
|
||||
key: (dynamic key) {
|
||||
final List<String> pair = key;
|
||||
return pair[0];
|
||||
},
|
||||
value: (dynamic value) {
|
||||
final List<String> pair = value;
|
||||
return pair[1];
|
||||
}
|
||||
);
|
||||
|
||||
return new Response(
|
||||
|
||||
@ -18,7 +18,6 @@ import 'package:flutter_tools/src/version.dart';
|
||||
|
||||
import 'src/context.dart';
|
||||
|
||||
const JsonEncoder _kPrettyJsonEncoder = const JsonEncoder.withIndent(' ');
|
||||
final Clock _testClock = new Clock.fixed(new DateTime(2015, 1, 1));
|
||||
final DateTime _upToDateVersion = _testClock.agoBy(FlutterVersion.kVersionAgeConsideredUpToDate ~/ 2);
|
||||
final DateTime _outOfDateVersion = _testClock.agoBy(FlutterVersion.kVersionAgeConsideredUpToDate * 2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user