From f79e530e18f37ef6a32ff8d5b838a70b09bf44ce Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 5 May 2015 00:56:07 +0200 Subject: [PATCH] chunker: Further cleanup --- archiver_test.go | 2 -- chunker/chunker.go | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/archiver_test.go b/archiver_test.go index 331da66ce..f42bdd71a 100644 --- a/archiver_test.go +++ b/archiver_test.go @@ -18,8 +18,6 @@ import ( var benchArchiveDirectory = flag.String("test.benchdir", ".", "benchmark archiving a real directory (default: .)") var testPol = chunker.Pol(0x3DA3358B4DC173) -const chunkerBufSize = 512 * chunker.KiB - type Rdr interface { io.ReadSeeker io.ReaderAt diff --git a/chunker/chunker.go b/chunker/chunker.go index a7a5609b7..d39bfc71c 100644 --- a/chunker/chunker.go +++ b/chunker/chunker.go @@ -86,8 +86,7 @@ type Chunker struct { } // New returns a new Chunker based on polynomial p that reads from rd -// with bufsize and pass all data to hash along the way, using buf for -// buffering. +// with bufsize and pass all data to hash along the way. func New(rd io.Reader, pol Pol, h hash.Hash) *Chunker { c := &Chunker{ buf: bufPool.Get().([]byte),