diff options
author | Alain Frisch <alain@frisch.fr> | 2012-01-18 08:31:11 +0000 |
---|---|---|
committer | Alain Frisch <alain@frisch.fr> | 2012-01-18 08:31:11 +0000 |
commit | c45bcb892d78f3182acb2805aef7ec6e23cce42a (patch) | |
tree | b92b5d6becb9e67a198bc2e070d748eeef62bc3d /tools | |
parent | cdbb84ec682704379bac21a633cbd2b9e93b35a8 (diff) | |
parent | 869feeb00704e0640c45ffe6aee6cc13e4077f79 (diff) | |
download | ocaml-unused_declarations.tar.gz |
Synchronize with trunk.unused_declarations
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/unused_declarations@12034 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'tools')
-rw-r--r-- | tools/addlabels.ml | 1 | ||||
-rw-r--r-- | tools/depend.ml | 1 | ||||
-rw-r--r-- | tools/ocamlprof.ml | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/tools/addlabels.ml b/tools/addlabels.ml index db8ecdc9a9..c057e72ca8 100644 --- a/tools/addlabels.ml +++ b/tools/addlabels.ml @@ -324,7 +324,6 @@ let rec add_labels_class ~text ~classes ~values ~methods cl = add_labels_expr ~text ~classes ~values e; values | Pcf_inher _ | Pcf_valvirt _ | Pcf_virt _ | Pcf_cstr _ -> values - | Pcf_let _ -> values (* not in the grammar *) end) | Pcl_fun (_, opt, pat, cl) -> begin match opt with None -> () diff --git a/tools/depend.ml b/tools/depend.ml index 24ccad116a..948646a823 100644 --- a/tools/depend.ml +++ b/tools/depend.ml @@ -299,7 +299,6 @@ and add_class_field bv = function | Pcf_virt(_, _, ty, _) -> add_type bv ty | Pcf_meth(_, _, _, e, _) -> add_expr bv e | Pcf_cstr(ty1, ty2, _) -> add_type bv ty1; add_type bv ty2 - | Pcf_let(_, pel, _) -> add_pat_expr_list bv pel | Pcf_init e -> add_expr bv e and add_class_declaration bv decl = diff --git a/tools/ocamlprof.ml b/tools/ocamlprof.ml index c1ed927e46..b8a6b3fa40 100644 --- a/tools/ocamlprof.ml +++ b/tools/ocamlprof.ml @@ -328,8 +328,6 @@ and rewrite_class_field iflag = | Pcf_meth (_, _, _, sexp, loc) -> if !instr_fun && not loc.loc_ghost then insert_profile rw_exp sexp else rewrite_exp iflag sexp - | Pcf_let(_, spat_sexp_list, _) -> - rewrite_patexp_list iflag spat_sexp_list | Pcf_init sexp -> rewrite_exp iflag sexp | Pcf_valvirt _ | Pcf_virt _ | Pcf_cstr _ -> () |