diff options
Diffstat (limited to 'encode_string.go')
-rw-r--r-- | encode_string.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/encode_string.go b/encode_string.go index a5d6633..328b07a 100644 --- a/encode_string.go +++ b/encode_string.go @@ -10,7 +10,6 @@ import ( "git.lukeshu.com/go/lowmemjson/internal/fastio" "git.lukeshu.com/go/lowmemjson/internal/jsonparse" - "git.lukeshu.com/go/lowmemjson/internal/jsontest" ) func writeStringUnicodeEscape(w io.Writer, c rune) (int, error) { @@ -116,16 +115,3 @@ func encodeStringFromBytes(w fastio.AllWriter, escaper BackslashEscaper, str []b } return nil } - -func init() { - jsontest.EncodeStringFromString = func(w io.Writer, s string) { - if err := encodeStringFromString(fastio.NewAllWriter(w), nil, s); err != nil { - panic(err) - } - } - jsontest.EncodeStringFromBytes = func(w io.Writer, s []byte) { - if err := encodeStringFromBytes(fastio.NewAllWriter(w), nil, s); err != nil { - panic(err) - } - } -} |