Skip to content

Commit

Permalink
chore: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jan 12, 2022
1 parent 61a3eee commit f6f852c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions enc_comma.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion enc_comma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

0 comments on commit f6f852c

Please sign in to comment.