diff --git a/enc_comma.go b/enc_comma.go index 0b7cb3b..10337fb 100644 --- a/enc_comma.go +++ b/enc_comma.go @@ -15,13 +15,6 @@ func (e *Encoder) end() { func (e *Encoder) current() int { return len(e.first) - 1 } -func (e *Encoder) resetComma() { - if len(e.first) == 0 { - return - } - e.first[e.current()] = true -} - // comma should be called before any new value. func (e *Encoder) comma() { // Writing commas. diff --git a/enc_comma_test.go b/enc_comma_test.go index 5baed29..a9d42f4 100644 --- a/enc_comma_test.go +++ b/enc_comma_test.go @@ -60,7 +60,6 @@ func BenchmarkEncoder_comma_overhead(b *testing.B) { for i := 0; i < b.N; i++ { e.ArrStart() e.comma() - e.resetComma() e.Reset() } }