From 6a9d0dc7b5c9a6a1c10c0c94eba5e72543080399 Mon Sep 17 00:00:00 2001 From: Maxime Dénès Date: Thu, 19 Jul 2018 23:49:54 +0200 Subject: Remove ClosedModule from libstack Seems unused and probably holds a lot of pointers. --- printing/prettyp.ml | 2 -- 1 file changed, 2 deletions(-) (limited to 'printing') diff --git a/printing/prettyp.ml b/printing/prettyp.ml index fd7135b6a6..6911013464 100644 --- a/printing/prettyp.ml +++ b/printing/prettyp.ml @@ -663,8 +663,6 @@ let gallina_print_library_entry env sigma with_values ent = Some (str " >>>>>>> Library " ++ DirPath.print obj_dir) | (oname,Lib.OpenedModule _) -> Some (str " >>>>>>> Module " ++ pr_name oname) - | (oname,Lib.ClosedModule _) -> - Some (str " >>>>>>> Closed Module " ++ pr_name oname) let gallina_print_context env sigma with_values = let rec prec n = function -- cgit v1.2.3 From 32caa7b700cb2f561edec9b86fbb4583d2962d4d Mon Sep 17 00:00:00 2001 From: Maxime Dénès Date: Thu, 19 Jul 2018 23:58:52 +0200 Subject: Also remove ClosedSection (same reasoning as ClosedModule) --- printing/prettyp.ml | 5 ----- 1 file changed, 5 deletions(-) (limited to 'printing') diff --git a/printing/prettyp.ml b/printing/prettyp.ml index 6911013464..170b96280f 100644 --- a/printing/prettyp.ml +++ b/printing/prettyp.ml @@ -657,8 +657,6 @@ let gallina_print_library_entry env sigma with_values ent = gallina_print_leaf_entry env sigma with_values (oname,lobj) | (oname,Lib.OpenedSection (dir,_)) -> Some (str " >>>>>>> Section " ++ pr_name oname) - | (oname,Lib.ClosedSection _) -> - Some (str " >>>>>>> Closed Section " ++ pr_name oname) | (_,Lib.CompilingLibrary { obj_dir; _ }) -> Some (str " >>>>>>> Library " ++ DirPath.print obj_dir) | (oname,Lib.OpenedModule _) -> @@ -791,9 +789,6 @@ let read_sec_context qid = let rec get_cxt in_cxt = function | (_,Lib.OpenedSection ({obj_dir;_},_) as hd)::rest -> if DirPath.equal dir obj_dir then (hd::in_cxt) else get_cxt (hd::in_cxt) rest - | (_,Lib.ClosedSection _)::rest -> - user_err Pp.(str "Cannot print the contents of a closed section.") - (* LEM: Actually, we could if we wanted to. *) | [] -> [] | hd::rest -> get_cxt (hd::in_cxt) rest in -- cgit v1.2.3