We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6244923 commit 8bcf88fCopy full SHA for 8bcf88f
1 file changed
drivers/generic/ppx_protocol_driver.ml
@@ -61,14 +61,6 @@ module type Driver = sig
61
val is_null: t -> bool
62
end
63
64
-let string_map ~f str =
65
- let cs = ref [] in
66
- String.iter ~f:(fun c -> cs := c :: !cs) str;
67
- let cs = f (List.rev !cs) in
68
- let bytes = Bytes.create (List.length cs) in
69
- List.iteri ~f:(fun i c -> bytes.[i] <- c) cs;
70
- Bytes.to_string bytes
71
-
72
let mangle str =
73
match String.split_on_chars ~on:['_'] str with
74
| s :: sx ->
0 commit comments