Skip to content

Commit

Permalink
Remove unused Video data (#2506)
Browse files Browse the repository at this point in the history
Co-authored-by: Cuihtlauac ALVARADO <[email protected]>
  • Loading branch information
cuihtlauac and Cuihtlauac ALVARADO authored Jun 14, 2024
1 parent afaf53e commit bfaceff
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 287 deletions.
235 changes: 0 additions & 235 deletions data/videos.yml

This file was deleted.

17 changes: 0 additions & 17 deletions src/ocamlorg_data/data.ml
Original file line number Diff line number Diff line change
Expand Up @@ -234,23 +234,6 @@ module Tutorial = struct
|> List.map fst
end

module Video = struct
include Video

let kind_to_string = function
| `Conference -> "conference"
| `Mooc -> "mooc"
| `Lecture -> "lecture"

let kind_of_string = function
| "conference" -> Ok `Conference
| "mooc" -> Ok `Mooc
| "lecture" -> Ok `Lecture
| s -> Error (`Msg ("Unknown proficiency type: " ^ s))

let get_by_slug slug = List.find_opt (fun x -> String.equal slug x.slug) all
end

module Watch = Watch

module Workshop = struct
Expand Down
23 changes: 0 additions & 23 deletions src/ocamlorg_data/data.mli
Original file line number Diff line number Diff line change
Expand Up @@ -371,29 +371,6 @@ module Tutorial : sig
val search_documents : string -> search_document list
end

module Video : sig
type kind = [ `Conference | `Mooc | `Lecture ]

val kind_of_string : string -> (kind, [> `Msg of string ]) result
val kind_to_string : kind -> string

type t = {
title : string;
slug : string;
description : string;
people : string list;
kind : kind;
tags : string list;
paper : string option;
link : string;
embed : string option;
year : int;
}

val all : t list
val get_by_slug : string -> t option
end

module Watch : sig
type t = {
name : string;
Expand Down
12 changes: 0 additions & 12 deletions src/ocamlorg_data/dune
Original file line number Diff line number Diff line change
Expand Up @@ -292,18 +292,6 @@
%{target}
(run %{ood_gen} tool_page)))))

(rule
(target video.ml)
(deps
%{workspace_root}/data/videos.yml
(:ood_gen %{workspace_root}/tool/ood-gen/bin/gen.exe))
(action
(chdir
%{workspace_root}
(with-stdout-to
%{target}
(run %{ood_gen} video)))))

(rule
(target watch.ml)
(deps
Expand Down

0 comments on commit bfaceff

Please sign in to comment.