aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/timonwong/loggercheck/internal/bytebufferpool
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-11-11 11:41:38 +0100
committerTaras Madan <tarasmadan@google.com>2024-11-11 11:10:48 +0000
commit27e76fae2ee2d84dc7db63af1d9ed7358ba35b7a (patch)
treeed19c0e35e272b3c4cc5a2f2c595e035b2428337 /vendor/github.com/timonwong/loggercheck/internal/bytebufferpool
parent621e84e063b0e15b23e17780338627c509e1b9e8 (diff)
vendor: update
Diffstat (limited to 'vendor/github.com/timonwong/loggercheck/internal/bytebufferpool')
-rw-r--r--vendor/github.com/timonwong/loggercheck/internal/bytebufferpool/pool.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/github.com/timonwong/loggercheck/internal/bytebufferpool/pool.go b/vendor/github.com/timonwong/loggercheck/internal/bytebufferpool/pool.go
deleted file mode 100644
index 9d88d21c4..000000000
--- a/vendor/github.com/timonwong/loggercheck/internal/bytebufferpool/pool.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package bytebufferpool
-
-import (
- "bytes"
- "sync"
-)
-
-var pool = sync.Pool{
- New: func() interface{} {
- return new(bytes.Buffer)
- },
-}
-
-func Get() *bytes.Buffer {
- buf := pool.Get().(*bytes.Buffer)
- buf.Reset()
- return buf
-}
-
-func Put(buf *bytes.Buffer) {
- pool.Put(buf)
-}