aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-09-28 00:02:17 +0200
committerPierre-Marie Pédrot2019-09-28 00:02:17 +0200
commit7e70815c2f326518c71f25fd9b222281a757572b (patch)
tree4ebf6169eee20e8595c2f640e74606297869eeda
parentacbf569a3b9f242fd704af9124c58697b8762d0d (diff)
Remove the monomorphic universe libobject.
No need to keep track of it this way now that this data is part of the kernel.
-rw-r--r--tactics/declare.ml7
1 files changed, 1 insertions, 6 deletions
diff --git a/tactics/declare.ml b/tactics/declare.ml
index bd47fc147e..e418240d3a 100644
--- a/tactics/declare.ml
+++ b/tactics/declare.ml
@@ -35,11 +35,6 @@ type import_status = ImportDefaultBehavior | ImportNeedQualified
(** Monomorphic universes need to survive sections. *)
-let input_universe_context : Univ.ContextSet.t -> Libobject.obj =
- declare_object @@ local_object "Monomorphic section universes"
- ~cache:(fun (na, uctx) -> Global.push_context_set false uctx)
- ~discharge:(fun (_, x) -> Some x)
-
let name_instance inst =
let map lvl = match Univ.Level.name lvl with
| None -> (* Having Prop/Set/Var as section universes makes no sense *)
@@ -65,7 +60,7 @@ let declare_universe_context ~poly ctx =
let nas = name_instance (Univ.UContext.instance uctx) in
Global.push_section_context (nas, uctx)
else
- Lib.add_anonymous_leaf (input_universe_context ctx)
+ Global.push_context_set false ctx
(** Declaration of constants and parameters *)