aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-10-05 12:16:34 +0200
committerGaëtan Gilbert2019-10-05 12:16:34 +0200
commit8398ec48072b0bbe5e571a8d1f1f6c1ace9270f4 (patch)
treed13a1039ce27bb947e80eb63781bb64a6037dcef /library
parentd7f11221f797e501fe3bcdb06fe7ef3f559869c3 (diff)
Remove "is_polymorphic_univ" checks in upper layers.
There were 2: - when declaring a constraint to avoid monomorphic constraint referring to polymorphic univs, this check is redundant with the check in Section.ml - when declaring a universe context to avoid redeclaring universes, this is not necessary after recent commits.
Diffstat (limited to 'library')
-rw-r--r--library/lib.ml3
-rw-r--r--library/lib.mli2
2 files changed, 0 insertions, 5 deletions
diff --git a/library/lib.ml b/library/lib.ml
index 991e23eb3a..0d9efe2d5d 100644
--- a/library/lib.ml
+++ b/library/lib.ml
@@ -425,9 +425,6 @@ let extract_worklist info =
let sections () = Safe_typing.sections_of_safe_env @@ Global.safe_env ()
-let is_polymorphic_univ u =
- Section.is_polymorphic_univ u (sections ())
-
let replacement_context () =
Section.replacement_context (Global.env ()) (sections ())
diff --git a/library/lib.mli b/library/lib.mli
index d3315b0f2e..59d77480e9 100644
--- a/library/lib.mli
+++ b/library/lib.mli
@@ -183,8 +183,6 @@ val is_in_section : GlobRef.t -> bool
val replacement_context : unit -> Opaqueproof.work_list
-val is_polymorphic_univ : Univ.Level.t -> bool
-
(** {6 Discharge: decrease the section level if in the current section } *)
(* XXX Why can't we use the kernel functions ? *)