aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/declare.ml6
1 files changed, 2 insertions, 4 deletions
diff --git a/library/declare.ml b/library/declare.ml
index cf2f1fbaec..1257044d35 100644
--- a/library/declare.ml
+++ b/library/declare.ml
@@ -102,8 +102,7 @@ let load_constant i ((sp,kn),(_,_,kind)) =
(pr_id (basename sp) ++ str " already exists");
let con = Global.constant_of_delta (constant_of_kn kn) in
Nametab.push (Nametab.Until i) sp (ConstRef con);
- add_constant_kind con kind;
- !cache_hook sp
+ add_constant_kind con kind
(* Opening means making the name without its module qualification available *)
let open_constant i ((sp,kn),_) =
@@ -220,8 +219,7 @@ let check_exists_inductive (sp,_) =
let load_inductive i ((sp,kn),(_,mie)) =
let names = inductive_names sp kn mie in
List.iter check_exists_inductive names;
- List.iter (fun (sp, ref) -> Nametab.push (Nametab.Until i) sp ref ) names;
- List.iter (fun (sp,_) -> !cache_hook sp) (inductive_names sp kn mie)
+ List.iter (fun (sp, ref) -> Nametab.push (Nametab.Until i) sp ref ) names
let open_inductive i ((sp,kn),(_,mie)) =
let names = inductive_names sp kn mie in