diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2018-07-05 12:56:27 +0200 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2018-07-05 12:56:27 +0200 |
commit | d19605b7bfb8425b53be4cab30bef462c4fa4d14 (patch) | |
tree | 2bdcc15e217c24ca33b2fe48537c8632562a9ec1 /engine/univSubst.ml | |
parent | 7413f8532879c64e05ee0e8ca16693d74fe84ab9 (diff) | |
parent | 08b2fde7054a61e5468ef90eabb0d348730f170e (diff) |
Merge PR #7746: Many small cleanups removing unused arguments and functions
Diffstat (limited to 'engine/univSubst.ml')
-rw-r--r-- | engine/univSubst.ml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/univSubst.ml b/engine/univSubst.ml index 6a433d9fb..2f59a3fa8 100644 --- a/engine/univSubst.ml +++ b/engine/univSubst.ml @@ -162,13 +162,13 @@ let subst_opt_univs_constr s = let normalize_univ_variables ctx = let ctx = normalize_opt_subst ctx in - let undef, def, subst = - Univ.LMap.fold (fun u v (undef, def, subst) -> + let def, subst = + Univ.LMap.fold (fun u v (def, subst) -> match v with - | None -> (Univ.LSet.add u undef, def, subst) - | Some b -> (undef, Univ.LSet.add u def, Univ.LMap.add u b subst)) - ctx (Univ.LSet.empty, Univ.LSet.empty, Univ.LMap.empty) - in ctx, undef, def, subst + | None -> (def, subst) + | Some b -> (Univ.LSet.add u def, Univ.LMap.add u b subst)) + ctx (Univ.LSet.empty, Univ.LMap.empty) + in ctx, def, subst let pr_universe_body = function | None -> mt () |