From 5bee0850b22497ce3a73c0ca2cd50214c88223b3 Mon Sep 17 00:00:00 2001 From: Stavros Polymenis Date: Fri, 20 Oct 2017 23:13:48 +0100 Subject: [PATCH] Dropped default values for webserver and template configuration records --- src/converters/template.ml | 9 --------- src/logarion_webserver.ml | 7 ------- 2 files changed, 16 deletions(-) diff --git a/src/converters/template.ml b/src/converters/template.ml index e89da49..64d9f20 100644 --- a/src/converters/template.ml +++ b/src/converters/template.ml @@ -12,15 +12,6 @@ module Configuration = struct item : path_t; } - let default_paths = { - dir = None; - header = None; - note = None; - front = None; - list = None; - item = None; - } - let of_config config = let open Confix.ConfixToml in let p k = path config ("templates" / k) in diff --git a/src/logarion_webserver.ml b/src/logarion_webserver.ml index a4b5f0b..c7c5324 100644 --- a/src/logarion_webserver.ml +++ b/src/logarion_webserver.ml @@ -11,13 +11,6 @@ module Configuration = struct template : Template.Configuration.paths_t; } - let default = { - url = Uri.empty; - static = Fpath.v (Sys.getcwd () ^ "/share/static"); - styles = []; - template = Template.Configuration.default_paths; - } - let of_config config = let open Confix.Config in let open Confix.ConfixToml in