Remove duplicate check for merlin context (#175)

This check is done in add_rules and dot_merlin. Only of those checks is
necessary. The check in dot_merlin is removed.
This commit is contained in:
Rudi Grinberg 2017-06-30 18:03:11 +07:00 committed by Jérémie Dimino
parent 06a179df99
commit 97a855524c
1 changed files with 49 additions and 50 deletions

View File

@ -27,7 +27,6 @@ let ppx_flags sctx ~dir ~src_dir { preprocess; libname; _ } =
| _ -> []
let dot_merlin sctx ~dir ({ requires; flags; _ } as t) =
if (SC.context sctx).merlin then
match Path.extract_build_context dir with
| Some (_, remaindir) ->
let path = Path.relative remaindir ".merlin" in