Skip to content

Commit

Permalink
Delete an unused function.
Browse files Browse the repository at this point in the history
Change-Id: I067a773dee0bf8edfcf11b0d762dcf82c3598330
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62490
Reviewed-by: Perry Lorier <perryl@google.com>
Reviewed-by: Paul Wankadia <junyer@google.com>
  • Loading branch information
junyer committed Jan 19, 2024
1 parent 264e71e commit 826ad10
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions re2/unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,6 @@ def _URange(s):
raise InputError("invalid Unicode range %s" % (s,))


def _UStr(v):
"""Converts Unicode code point to hex string.
0x263a => '0x263A'.
Args:
v: code point to convert
Returns:
Unicode string
Raises:
InputError: the argument is not a valid Unicode value.
"""
if v < 0 or v > _RUNE_MAX:
raise InputError("invalid Unicode value %s" % (v,))
return "0x%04X" % (v,)


def _ParseContinue(s):
"""Parses a Unicode continuation field.
Expand Down

0 comments on commit 826ad10

Please sign in to comment.