Skip to content

Commit c2549c2

Browse files
committed
Remove _sprint, only used in StrLiterals
1 parent 1d5e7e3 commit c2549c2

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/StrAPI.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ quotesym(s...) = Expr(:quote, symstr(s...))
2424
@api public StringError
2525

2626
@api develop NEW_ITERATE, CodeUnitTypes, CodePoints, MaybeSub, symstr, quotesym,
27-
_stdout, _sprint, "@preserve"
27+
_stdout, "@preserve"
2828

2929
@api base convert, getindex, length, map, collect, hash, sizeof, size, strides,
3030
pointer, unsafe_load, string, read, write, start, next, done, reverse,
@@ -43,9 +43,6 @@ quotesym(s...) = Expr(:quote, symstr(s...))
4343
include("compat.jl")
4444
else # !V6_COMPAT
4545

46-
_sprint(f, s) = sprint(f, s; sizehint=lastindex(s))
47-
_sprint(f, s, c) = sprint(f, s, c; sizehint=lastindex(s))
48-
4946
using Random
5047

5148
import Base.GC: @preserve

src/compat.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
const StringIndexError = UnicodeError
55

6-
_sprint(f, s) = sprint(endof(s), f, s)
7-
_sprint(f, s, c) = sprint(endof(s), f, s, c)
8-
96
module Unicode
107
const normalize = Base.UTF8proc.normalize_string
118
const graphemes = Base.UTF8proc.graphemes

0 commit comments

Comments
 (0)