Une nouvelle version du portail de gestion des comptes externes sera mise en production lundi 09 août. Elle permettra d'allonger la validité d'un compte externe jusqu'à 3 ans. Pour plus de détails sur cette version consulter : https://doc-si.inria.fr/x/FCeS

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