Maj terminée. Pour consulter la release notes associée voici le lien :
https://about.gitlab.com/releases/2021/07/07/critical-security-release-gitlab-14-0-4-released/

Commit b7069e5d authored by Stephane Glondu's avatar Stephane Glondu
Browse files

Remove dead code

parent c22e9546
......@@ -101,6 +101,5 @@ type election_files = {
}
module type REGISTRABLE_ELECTION = sig
val discard : unit -> unit
val register : unit -> (module WEB_ELECTION) Lwt.t
end
......@@ -134,7 +134,6 @@ let import_election f =
let module X = struct
let metadata = metadata
let dir = dir
let state = ref `Open
end in
let web_params = (module X : WEB_PARAMS) in
let do_register = register_election params web_params in
......@@ -161,10 +160,7 @@ let import_election f =
)
) in
let module R = struct
let discard () = Lwt_mutex.unlock registration_mutex
let register () =
if not (Lwt_mutex.is_locked registration_mutex) then
failwith "This election can no longer be registered.";
try_lwt
Lwt_unix.mkdir dir 0o700 >>
Lwt_io.(with_file Output (dir/"election.json") (fun oc ->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment