@@ -10,7 +10,6 @@ import 'package:file/file.dart';
10
10
import 'package:meta/meta.dart' ;
11
11
import 'package:platform/platform.dart' ;
12
12
import 'package:process/process.dart' ;
13
- import 'package:yaml/yaml.dart' ;
14
13
15
14
import './git.dart' ;
16
15
import './globals.dart' ;
@@ -599,12 +598,6 @@ class FrameworkRepository extends Repository {
599
598
static const String defaultUpstream = 'git@github.com:flutter/flutter.git' ;
600
599
static const String defaultBranch = 'master' ;
601
600
602
- Future <CiYaml > get ciYaml async {
603
- final CiYaml ciYaml =
604
- CiYaml ((await checkoutDirectory).childFile ('.ci.yaml' ));
605
- return ciYaml;
606
- }
607
-
608
601
Future <String > get cacheDirectory async {
609
602
return fileSystem.path.join (
610
603
(await checkoutDirectory).path,
@@ -857,11 +850,6 @@ class EngineRepository extends Repository {
857
850
858
851
final Checkouts checkouts;
859
852
860
- Future <CiYaml > get ciYaml async {
861
- final CiYaml ciYaml = CiYaml ((await checkoutDirectory).childFile ('.ci.yaml' ));
862
- return ciYaml;
863
- }
864
-
865
853
static const String defaultUpstream = 'git@github.com:flutter/engine.git' ;
866
854
static const String defaultBranch = 'main' ;
867
855
@@ -930,26 +918,3 @@ class Checkouts {
930
918
final ProcessManager processManager;
931
919
final Stdio stdio;
932
920
}
933
-
934
- class CiYaml {
935
- CiYaml (this .file) {
936
- if (! file.existsSync ()) {
937
- throw ConductorException ('Could not find the .ci.yaml file at ${file .path }' );
938
- }
939
- }
940
-
941
- /// Underlying [File] that this object wraps.
942
- final File file;
943
-
944
- /// Returns the raw string contents of this file.
945
- ///
946
- /// This is not cached as the contents can be written to while the conductor
947
- /// is running.
948
- String get stringContents => file.readAsStringSync ();
949
-
950
- /// Returns the parsed contents of the file as a [YamlMap] .
951
- ///
952
- /// This is not cached as the contents can be written to while the conductor
953
- /// is running.
954
- YamlMap get contents => loadYaml (stringContents) as YamlMap ;
955
- }
0 commit comments