Unverified Commit b6bd628b authored by Devon Carew's avatar Devon Carew Committed by GitHub

address unused element issues and new warnings (#12890)

* address unused element issues and new warnings

* add a missing return
parent 15601fe5
......@@ -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);
......
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