diff options
Diffstat (limited to 'library/global.ml')
-rw-r--r-- | library/global.ml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/library/global.ml b/library/global.ml index 929f7418f..f120ef195 100644 --- a/library/global.ml +++ b/library/global.ml @@ -10,12 +10,11 @@ open Names open Term open Environ open Safe_typing -open Summary (* We introduce here the global environment of the system, and we declare it as a synchronized table. *) -let global_env = ref empty_environment +let global_env = Summary.ref empty_environment ~name:"Global environment" let safe_env () = !global_env @@ -23,12 +22,6 @@ let env () = env_of_safe_env !global_env let env_is_empty () = is_empty !global_env -let _ = - declare_summary "Global environment" - { freeze_function = (fun () -> !global_env); - unfreeze_function = (fun fr -> global_env := fr); - init_function = (fun () -> global_env := empty_environment) } - (* Then we export the functions of [Typing] on that environment. *) let universes () = universes (env()) |