diff --git a/dev/devicelab/lib/framework/utils.dart b/dev/devicelab/lib/framework/utils.dart index 6e7718a1ce..f6fce13d2a 100644 --- a/dev/devicelab/lib/framework/utils.dart +++ b/dev/devicelab/lib/framework/utils.dart @@ -501,30 +501,6 @@ String jsonEncode(dynamic data) { return const JsonEncoder.withIndent(' ').convert(data) + '\n'; } -Future getFlutter(String revision) async { - section('Get Flutter!'); - - if (exists(flutterDirectory)) { - flutterDirectory.deleteSync(recursive: true); - } - - await inDirectory(flutterDirectory.parent, () async { - await exec('git', ['clone', 'https://github.com/flutter/flutter.git']); - }); - - await inDirectory(flutterDirectory, () async { - await exec('git', ['checkout', revision]); - }); - - await flutter('config', options: ['--no-analytics']); - - section('flutter doctor'); - await flutter('doctor'); - - section('flutter update-packages'); - await flutter('update-packages'); -} - void checkNotNull(Object o1, [Object o2 = 1, Object o3 = 1,