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'; ...@@ -26,8 +26,6 @@ import 'adb.dart';
import 'android.dart'; import 'android.dart';
import 'android_sdk.dart'; import 'android_sdk.dart';
const String _defaultAdbPath = 'adb';
enum _HardwareType { emulator, physical } enum _HardwareType { emulator, physical }
/// Map to help our `isLocalEmulator` detection. /// Map to help our `isLocalEmulator` detection.
......
...@@ -24,9 +24,6 @@ import 'mac.dart'; ...@@ -24,9 +24,6 @@ import 'mac.dart';
const String _xcrunPath = '/usr/bin/xcrun'; 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 { class IOSSimulators extends PollingDeviceDiscovery {
IOSSimulators() : super('iOS simulators'); IOSSimulators() : super('iOS simulators');
......
...@@ -7,9 +7,6 @@ import 'package:flutter_tools/src/base/file_system.dart'; ...@@ -7,9 +7,6 @@ import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_info.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
const String _kBuildDirectory = '/build/app/outputs';
void main() { void main() {
group('gradle project', () { group('gradle project', () {
GradleProject projectFrom(String properties) => new GradleProject.fromAppProperties(properties); GradleProject projectFrom(String properties) => new GradleProject.fromAppProperties(properties);
......
...@@ -64,8 +64,14 @@ void main() { ...@@ -64,8 +64,14 @@ void main() {
return <String>[name, value]; return <String>[name, value];
}) })
.where((List<String> pair) => pair != null), .where((List<String> pair) => pair != null),
key: (List<String> pair) => pair[0], key: (dynamic key) {
value: (List<String> pair) => pair[1], final List<String> pair = key;
return pair[0];
},
value: (dynamic value) {
final List<String> pair = value;
return pair[1];
}
); );
return new Response( return new Response(
......
...@@ -18,7 +18,6 @@ import 'package:flutter_tools/src/version.dart'; ...@@ -18,7 +18,6 @@ import 'package:flutter_tools/src/version.dart';
import 'src/context.dart'; import 'src/context.dart';
const JsonEncoder _kPrettyJsonEncoder = const JsonEncoder.withIndent(' ');
final Clock _testClock = new Clock.fixed(new DateTime(2015, 1, 1)); final Clock _testClock = new Clock.fixed(new DateTime(2015, 1, 1));
final DateTime _upToDateVersion = _testClock.agoBy(FlutterVersion.kVersionAgeConsideredUpToDate ~/ 2); final DateTime _upToDateVersion = _testClock.agoBy(FlutterVersion.kVersionAgeConsideredUpToDate ~/ 2);
final DateTime _outOfDateVersion = _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