aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/pp.ml
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2016-09-30 19:45:32 +0200
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-03-21 15:47:14 +0100
commit7440be4ffaf6ace5b8e94354c9a56462f45fa2dd (patch)
tree92fd67356c9deaeb66a229b5faf66f652b7630b3 /lib/pp.ml
parentfd6271089a0f0fcaa6d89e347d76247c7c831d23 (diff)
[pp] Remove redundant white spacing pp construct.
Diffstat (limited to 'lib/pp.ml')
-rw-r--r--lib/pp.ml4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pp.ml b/lib/pp.ml
index 388eed9e4..d763767dc 100644
--- a/lib/pp.ml
+++ b/lib/pp.ml
@@ -35,7 +35,6 @@ type std_ppcmds =
| Ppcmd_tag of pp_tag * std_ppcmds
(* Are those redundant? *)
| Ppcmd_print_break of int * int
- | Ppcmd_white_space of int
| Ppcmd_force_newline
| Ppcmd_comment of string list
@@ -86,7 +85,7 @@ let (++) = app
let str s = Ppcmd_string s
let brk (a,b) = Ppcmd_print_break (a,b)
let fnl () = Ppcmd_force_newline
-let ws n = Ppcmd_white_space n
+let ws n = Ppcmd_print_break (n,0)
let comment l = Ppcmd_comment l
(* derived commands *)
@@ -183,7 +182,6 @@ let pp_with ?pp_tag ft =
cpp_open_box bty ;
if not (Format.over_max_boxes ()) then pp_cmd ss;
Format.pp_close_box ft ()
- | Ppcmd_white_space n -> pp_print_break ft n 0
| Ppcmd_print_break(m,n) -> pp_print_break ft m n
| Ppcmd_force_newline -> pp_force_newline ft ()
| Ppcmd_comment coms -> List.iter (pr_com ft) coms