Skip to content

Commit

Permalink
Remove map_string from API
Browse files Browse the repository at this point in the history
Its not tested anymore and unused by Yojson
  • Loading branch information
Leonidas-from-XIV committed Jun 4, 2024
1 parent 1b7083f commit d441f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions lib/read.mli
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ val finish_string : lexer_state -> Lexing.lexbuf -> string
val read_string : lexer_state -> Lexing.lexbuf -> string
val read_ident : lexer_state -> Lexing.lexbuf -> string

val map_string :
lexer_state -> (string -> int -> int -> 'a) -> Lexing.lexbuf -> 'a
(* equivalent to finish_string *)

val map_ident :
lexer_state -> (string -> int -> int -> 'a) -> Lexing.lexbuf -> 'a
(* equivalent to read_ident *)
Expand Down
4 changes: 2 additions & 2 deletions test/test_read.ml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ let unquoted_from_string () =
__LOC__ Fixtures.unquoted_value
(Yojson.Safe.from_string Fixtures.unquoted_json)

let map_ident_and_string () =
let map_ident () =
let lexbuf = Lexing.from_string {|{foo:"hello"}|} in
let lexer_state = Yojson.init_lexer () in

Expand Down Expand Up @@ -127,5 +127,5 @@ let single_json =
("from_string_fail_escaped_char", `Quick, from_string_fail_escaped_char);
("from_file", `Quick, from_file);
("unquoted_from_string", `Quick, unquoted_from_string);
("map_ident/map_string", `Quick, map_ident_and_string);
("map_ident", `Quick, map_ident);
]

0 comments on commit d441f4f

Please sign in to comment.