From 7cfc4e5146be5666419451bdd516f1f3f264d24a Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Sun, 25 Jan 2015 14:42:51 +0100 Subject: Imported Upstream version 8.5~beta1+dfsg --- library/dischargedhypsmap.ml | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) (limited to 'library/dischargedhypsmap.ml') diff --git a/library/dischargedhypsmap.ml b/library/dischargedhypsmap.ml index f95b6c03..e4280334 100644 --- a/library/dischargedhypsmap.ml +++ b/library/dischargedhypsmap.ml @@ -1,47 +1,19 @@ (************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) -(* - [] - -(*s Registration as global tables and rollback. *) - -let init () = - discharged_hyps_map := Spmap.empty - -let freeze () = !discharged_hyps_map - -let unfreeze dhm = discharged_hyps_map := dhm - -let _ = - Summary.declare_summary "discharged_hypothesis" - { Summary.freeze_function = freeze; - Summary.unfreeze_function = unfreeze; - Summary.init_function = init } + try Spmap.find sp !discharged_hyps_map with Not_found -> [] -- cgit v1.2.3