Skip to content

Commit

Permalink
format: remove stringBufPool
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Apr 27, 2020
1 parent 1723609 commit f9e3221
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions format.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"reflect"
"strconv"
"strings"
"sync"
"time"
)

Expand Down Expand Up @@ -233,7 +232,3 @@ func formatLogfmtValue(value interface{}) string {
return strconv.Quote(fmt.Sprintf("%+v", value))
}
}

var stringBufPool = sync.Pool{
New: func() interface{} { return new(bytes.Buffer) },
}

0 comments on commit f9e3221

Please sign in to comment.