aboutsummaryrefslogtreecommitdiff
path: root/kernel/vars.ml
diff options
context:
space:
mode:
authorMatthieu Sozeau2014-07-21 18:31:41 +0200
committerMatthieu Sozeau2014-07-21 18:41:37 +0200
commit2b7ccb235b503f4c978009c2d7908d305cf85925 (patch)
treead3c4a3d218c20318c70fdd261edddcafbaf8b19 /kernel/vars.ml
parent99efd521c3bd01f885248f6ac03c450e98929b2e (diff)
Cleanup substitution inside universe instances, only done through subst_fn now,
and disable hashconsing of substituted instances which had a huge performance penalty in general. They are hashconsed when put in the environment only now.
Diffstat (limited to 'kernel/vars.ml')
-rw-r--r--kernel/vars.ml6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/vars.ml b/kernel/vars.ml
index 120c07d30d..386a3e8ff2 100644
--- a/kernel/vars.ml
+++ b/kernel/vars.ml
@@ -216,12 +216,6 @@ let subst_vars subst c = substn_vars 1 subst c
(** Universe substitutions *)
open Constr
-let subst_univs_puniverses subst =
- if Univ.is_empty_level_subst subst then fun c -> c
- else
- let f = Univ.Instance.subst subst in
- fun ((c, u) as x) -> let u' = f u in if u' == u then x else (c, u')
-
let subst_univs_fn_puniverses fn =
let f = Univ.Instance.subst_fn fn in
fun ((c, u) as x) -> let u' = f u in if u' == u then x else (c, u')