Skip to content

Commit

Permalink
discard string_of_uchar_list
Browse files Browse the repository at this point in the history
  • Loading branch information
gfngfn committed Sep 8, 2024
1 parent 1fc3976 commit 6502811
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions src-util/myUtil.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@

(* TODO: remove this *)
let string_of_uchar_list =
UtfUtil.encode_utf8


let rec range i j =
if i > j then [] else
i :: (range (i + 1) j)
Expand Down
2 changes: 0 additions & 2 deletions src-util/myUtil.mli
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
type abs_path = AbsPath.t
[@@deriving show]

val string_of_uchar_list : Uchar.t list -> string

val range : int -> int -> int list

val list_fold_adjacent : ('a -> 'b -> 'b option -> 'b option -> 'a) -> 'a -> 'b list -> 'a
Expand Down
2 changes: 1 addition & 1 deletion src/backend/horzBox.ml
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ let get_metrics_of_intermediate_horz_box_list (imhblst : intermediate_horz_box l
let rec extract_string (hblst : horz_box list) : string =
let extract_one hb =
match hb with
| HorzPure(PHCInnerString{ chars = uchs; _ }) -> string_of_uchar_list uchs
| HorzPure(PHCInnerString{ chars = uchs; _ }) -> UtfUtil.encode_utf8 uchs
| HorzPure(PHCInnerMathGlyph(_)) -> ""
| HorzPure(PHGRising{ contents = hbs; _ }) -> extract_string hbs
| HorzPure(PHGFixedFrame{ contents = hbs; _ }) -> extract_string hbs
Expand Down

0 comments on commit 6502811

Please sign in to comment.