From 820a7bda25c5541ce9580f99ec9f6eb512103e59 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 11 Jan 2025 06:40:30 +0100 Subject: Removed the json configuration management --- bin/dune | 2 -- bin/importer.ml | 6 ------ 2 files changed, 8 deletions(-) (limited to 'bin') diff --git a/bin/dune b/bin/dune index fad168d..f28f22b 100755 --- a/bin/dune +++ b/bin/dune @@ -13,7 +13,6 @@ lwt lwt.unix otoml - yojson tools helpers importConf @@ -27,7 +26,6 @@ importSQL ) (link_flags (:standard)) -(preprocess (pps ppx_yojson_conv)) ) (install diff --git a/bin/importer.ml b/bin/importer.ml index 4ca04fd..c710aed 100644 --- a/bin/importer.ml +++ b/bin/importer.ml @@ -34,12 +34,6 @@ module Args = struct let load_conf : string -> ImportConf.Syntax.t = fun file -> match Filename.extension file with - | ".json" -> ( - let configuration_file = Yojson.Safe.from_file (exists file) in - try ImportConf.t_of_yojson configuration_file with - | e -> - print_endline @@ ImportErrors.repr_error e; - exit 1) | _ -> ( let (conf : (Db.Syntax.t, string) result) = let* configuration_file = -- cgit v1.2.3