@@ -10,7 +10,6 @@ import 'package:file/file.dart';
1010import 'package:meta/meta.dart' ;
1111import 'package:platform/platform.dart' ;
1212import 'package:process/process.dart' ;
13- import 'package:yaml/yaml.dart' ;
1413
1514import './git.dart' ;
1615import './globals.dart' ;
@@ -599,12 +598,6 @@ class FrameworkRepository extends Repository {
599598 static const String defaultUpstream
= '[email protected] :flutter/flutter.git' ;
600599 static const String defaultBranch = 'master' ;
601600
602- Future <CiYaml > get ciYaml async {
603- final CiYaml ciYaml =
604- CiYaml ((await checkoutDirectory).childFile ('.ci.yaml' ));
605- return ciYaml;
606- }
607-
608601 Future <String > get cacheDirectory async {
609602 return fileSystem.path.join (
610603 (await checkoutDirectory).path,
@@ -857,11 +850,6 @@ class EngineRepository extends Repository {
857850
858851 final Checkouts checkouts;
859852
860- Future <CiYaml > get ciYaml async {
861- final CiYaml ciYaml = CiYaml ((await checkoutDirectory).childFile ('.ci.yaml' ));
862- return ciYaml;
863- }
864-
865853 static const String defaultUpstream
= '[email protected] :flutter/engine.git' ;
866854 static const String defaultBranch = 'main' ;
867855
@@ -930,26 +918,3 @@ class Checkouts {
930918 final ProcessManager processManager;
931919 final Stdio stdio;
932920}
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