From f6f852c99761aa47e10417e90762c73bd49cc727 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Wed, 12 Jan 2022 15:07:26 +0300 Subject: [PATCH] chore: remove unused method --- enc_comma.go | 7 ------- enc_comma_test.go | 1 - 2 files changed, 8 deletions(-) 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() } }