From ac315fd0516480a0fd01a3945826941803576b01 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 1 Apr 2019 11:51:50 -0700 Subject: [PATCH] channeldb/db: remove unused buffer pool --- channeldb/db.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/channeldb/db.go b/channeldb/db.go index d640cbdc8..e286d7151 100644 --- a/channeldb/db.go +++ b/channeldb/db.go @@ -7,7 +7,6 @@ import ( "net" "os" "path/filepath" - "sync" "time" "github.com/btcsuite/btcd/btcec" @@ -104,10 +103,6 @@ var ( byteOrder = binary.BigEndian ) -var bufPool = &sync.Pool{ - New: func() interface{} { return new(bytes.Buffer) }, -} - // DB is the primary datastore for the lnd daemon. The database stores // information related to nodes, routing data, open/closed channels, fee // schedules, and reputation data.