From f9e3221677eaa957d97c24df1b38fa85e461dc9a Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Mon, 27 Apr 2020 10:51:19 +0200 Subject: [PATCH] format: remove stringBufPool --- format.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/format.go b/format.go index baa40e0..e4a82f8 100644 --- a/format.go +++ b/format.go @@ -7,7 +7,6 @@ import ( "reflect" "strconv" "strings" - "sync" "time" ) @@ -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) }, -}