aboutsummaryrefslogtreecommitdiff
path: root/interp
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-04-22 15:31:12 +0200
committerPierre-Marie Pédrot2014-04-23 12:09:14 +0200
commit74ddca99c649f2f8c203582a9b82bddf64fb6b52 (patch)
treef23aa6340c2630619864666ef5eed257d3d765d9 /interp
parentd23c7539887366202bc370d0f80c26a557486e1c (diff)
Removing dead code, thanks to new OCaml warnings and a bit of scripting.
Diffstat (limited to 'interp')
-rw-r--r--interp/constrintern.ml19
1 files changed, 0 insertions, 19 deletions
diff --git a/interp/constrintern.ml b/interp/constrintern.ml
index 48c9ca47a8..7fba83e66f 100644
--- a/interp/constrintern.ml
+++ b/interp/constrintern.ml
@@ -708,25 +708,6 @@ let check_no_explicitation l =
| (_, Some (loc, _)) :: _ ->
user_err_loc (loc,"",str"Unexpected explicitation of the argument of an abbreviation.")
-(* This code is taken from dumpglob, and should be shared with it *)
-let feedback_global loc ref =
- if !Flags.ide_slave || !Flags.print_emacs then
- let remove_sections dir =
- if Libnames.is_dirpath_prefix_of dir (Lib.cwd ()) then
- Libnames.pop_dirpath_n (Lib.sections_depth ()) (Lib.cwd ())
- else
- dir in
- let sp = Nametab.path_of_global ref in
- let lib_dp = Lib.library_part ref in
- let ty = "" in
- let mod_dp,id = Libnames.repr_path sp in
- let mod_dp = remove_sections mod_dp in
- let mod_dp_trunc = Libnames.drop_dirpath_prefix lib_dp mod_dp in
- let filepath = Names.DirPath.to_string lib_dp in
- let modpath = Names.DirPath.to_string mod_dp_trunc in
- let ident = Names.Id.to_string id in
- Pp.feedback (Interface.GlobRef (loc, filepath, modpath, ident, ty))
-
let dump_extended_global loc = function
| TrueGlobal ref -> (*feedback_global loc ref;*) Dumpglob.add_glob loc ref
| SynDef sp -> Dumpglob.add_glob_kn loc sp