aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2015-02-02 09:30:53 +0100
committerPierre-Marie Pédrot2015-02-02 11:17:09 +0100
commit777f0ace3d2458cbe1840dcf3d8f350452721e84 (patch)
tree84ba577dd35863ca0eb77b7155ca5d81899b85ea /lib
parentdb293d185f8deb091d4b086f327caa0f376d67d7 (diff)
Removing dead code.
Diffstat (limited to 'lib')
-rw-r--r--lib/monad.ml2
-rw-r--r--lib/pp.ml2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/monad.ml b/lib/monad.ml
index 4a52684da4..a1714a41b3 100644
--- a/lib/monad.ml
+++ b/lib/monad.ml
@@ -111,7 +111,7 @@ module Make (M:Def) : S with type +'a t = 'a M.t = struct
| [a] ->
M.map (fun a' -> [a']) (f a)
| a::b::l ->
- map f l >>= fun l' ->
+ map_right f l >>= fun l' ->
f b >>= fun b' ->
M.map (fun a' -> a'::b'::l') (f a)
diff --git a/lib/pp.ml b/lib/pp.ml
index 234d2344f6..cc56e5e8d7 100644
--- a/lib/pp.ml
+++ b/lib/pp.ml
@@ -387,8 +387,6 @@ let pp_with ?pp_tag ft strm =
let ppnl_with ft strm =
pp_dirs ft (Glue.atom (Ppdir_ppcmds (strm ++ fnl ())))
-let pp_flush_with ft = Format.pp_print_flush ft
-
(* pretty printing functions WITH FLUSH *)
let msg_with ft strm =
pp_dirs ft (Glue.atom(Ppdir_ppcmds strm) ++ Glue.atom(Ppdir_print_flush))