summaryrefslogtreecommitdiff
path: root/src/util.ml
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-01-20 23:56:32 +0700
committerDaniil Baturin <daniil@baturin.org>2017-01-20 23:56:32 +0700
commit46efea7823acfef5230f33f4b27c99bc176aafbc (patch)
treea919150390b4cdfe2874e958cf1287bf0181e42f /src/util.ml
parent465bef917357629443b85256d1669404c91e90dd (diff)
downloadvyconf-46efea7823acfef5230f33f4b27c99bc176aafbc.tar.gz
vyconf-46efea7823acfef5230f33f4b27c99bc176aafbc.zip
Use BatOption.defalt instead of homegrown equivalent.
If we are going to use batteries for numeric_compare, why not take advantage of the rest.
Diffstat (limited to 'src/util.ml')
-rw-r--r--src/util.ml5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/util.ml b/src/util.ml
index afa0ef3..7f0d681 100644
--- a/src/util.ml
+++ b/src/util.ml
@@ -21,10 +21,5 @@ let string_of_path path =
| [] -> ""
| x :: xs -> Printf.sprintf "%s%s" x (aux xs "")
-let substitute_default o d =
- match o with
- | None -> d
- | Some v -> v
-
let absolute_path relative_path =
FilePath.make_absolute (Sys.getcwd ()) relative_path