Skip to content

Commit 7eac69e

Browse files
remove unused function
1 parent 3b57fd4 commit 7eac69e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Data/String/CodePoints.purs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ codePointFromInt n = Nothing
5656
codePointToInt :: CodePoint -> Int
5757
codePointToInt (CodePoint n) = n
5858

59-
codePointFromSurrogatePair :: Int -> Int -> Maybe CodePoint
60-
codePointFromSurrogatePair lead trail | isLead lead && isTrail trail =
61-
Just (unsurrogate lead trail)
62-
codePointFromSurrogatePair _ _ = Nothing
63-
6459
unsurrogate :: Int -> Int -> CodePoint
6560
unsurrogate lead trail = CodePoint ((lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000)
6661

0 commit comments

Comments
 (0)