Skip to content

Commit 99dd92b

Browse files
committed
Remove Block.source_trees
1 parent 2ab485d commit 99dd92b

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

lib/block.ml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ type t = {
7676
loc : Location.t;
7777
section : section option;
7878
dir : string option;
79-
source_trees : string list;
8079
required_packages : string list;
8180
labels : Label.t list;
8281
legacy_labels : bool;
@@ -200,8 +199,6 @@ let directory t = t.dir
200199

201200
let file t = match t.value with Include t -> Some t.file_included | _ -> None
202201

203-
let source_trees t = t.source_trees
204-
205202
let non_det t =
206203
match t.value with
207204
| OCaml b -> b.non_det
@@ -320,7 +317,6 @@ type block_config = {
320317
dir : string option;
321318
skip : bool;
322319
version : (Label.Relation.t * Ocaml_version.t) option;
323-
source_trees : string list;
324320
required_packages : string list;
325321
set_variables : (string * string) list;
326322
unset_variables : string list;
@@ -341,8 +337,6 @@ let get_block_config l =
341337
dir = get_label (function Dir x -> Some x | _ -> None) l;
342338
skip = List.exists (function Label.Skip -> true | _ -> false) l;
343339
version = get_label (function Version (x, y) -> Some (x, y) | _ -> None) l;
344-
source_trees =
345-
List.filter_map (function Label.Source_tree x -> Some x | _ -> None) l;
346340
required_packages =
347341
List.filter_map
348342
(function Label.Require_package x -> Some x | _ -> None)
@@ -449,7 +443,6 @@ let mk ~loc ~section ~labels ~legacy_labels ~header ~contents ~errors =
449443
loc;
450444
section;
451445
dir = config.dir;
452-
source_trees = config.source_trees;
453446
required_packages = config.required_packages;
454447
labels;
455448
legacy_labels;

lib/block.mli

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ type t = {
7878
loc : Location.t;
7979
section : section option;
8080
dir : string option;
81-
source_trees : string list;
8281
required_packages : string list;
8382
labels : Label.t list;
8483
legacy_labels : bool;
@@ -139,10 +138,6 @@ val non_det : t -> Label.non_det option
139138
val directory : t -> string option
140139
(** [directory t] is the directory where [t] tests should be run. *)
141140

142-
val source_trees : t -> string list
143-
(** [source_trees t] is the list of extra source-trees to add as
144-
dependency of the code-block. *)
145-
146141
val file : t -> string option
147142
(** [file t] is the name of the file to synchronize [t] with. *)
148143

0 commit comments

Comments
 (0)