diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2017-08-29 14:34:17 +0200 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2017-08-29 14:34:17 +0200 |
commit | 75d70664156bf1715b4eb9933a684a344f43467d (patch) | |
tree | 0f98f6fb7b1d39e8aae86c45ba7b2e36b3a91f53 /library/lib.ml | |
parent | 0c566066f92728d9a848e1f60f52dd09c1a727f2 (diff) | |
parent | 2def58217686b5083da38778a5ebffb451b1d4d6 (diff) |
Merge PR #773: [flags] Remove XML output flag.
Diffstat (limited to 'library/lib.ml')
-rw-r--r-- | library/lib.ml | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/library/lib.ml b/library/lib.ml index dc903df09..5418003eb 100644 --- a/library/lib.ml +++ b/library/lib.ml @@ -521,11 +521,6 @@ let is_in_section ref = (*************) (* Sections. *) - -(* XML output hooks *) -let (f_xml_open_section, xml_open_section) = Hook.make ~default:ignore () -let (f_xml_close_section, xml_close_section) = Hook.make ~default:ignore () - let open_section id = let olddir,(mp,oldsec) = !lib_state.path_prefix in let dir = add_dirpath_suffix olddir id in @@ -537,7 +532,6 @@ let open_section id = (*Pushed for the lifetime of the section: removed by unfrozing the summary*) Nametab.push_dir (Nametab.Until 1) dir (DirOpenSection prefix); lib_state := { !lib_state with path_prefix = prefix }; - if !Flags.xml_export then Hook.get f_xml_open_section id; add_section () @@ -565,7 +559,6 @@ let close_section () = let full_olddir = fst !lib_state.path_prefix in pop_path_prefix (); add_entry oname (ClosedSection (List.rev (mark::secdecls))); - if !Flags.xml_export then Hook.get f_xml_close_section (basename (fst oname)); let newdecls = List.map discharge_item secdecls in Summary.unfreeze_summaries fs; List.iter (Option.iter (fun (id,o) -> add_discharged_leaf id o)) newdecls; |