From bef40cd1ef355fea64a12e2dcbdbe5addb9499db Mon Sep 17 00:00:00 2001 From: Oren Date: Sun, 26 Mar 2017 12:12:55 +0300 Subject: [PATCH] cleanup --- swarm/storage/binarymerkle.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/swarm/storage/binarymerkle.go b/swarm/storage/binarymerkle.go index edc5e4faaf..2f828c4703 100644 --- a/swarm/storage/binarymerkle.go +++ b/swarm/storage/binarymerkle.go @@ -345,8 +345,7 @@ func (d *state) Reset() { d.btree = BTree{count: 0, root: nil, rootHash: nil} } -// Write absorbs more data into the hash's state. It produces an error -// if more data is written to the ShakeHash after writing +// Write absorbs more data into the hash's state. func (d *state) Write(p []byte) (written int, err error) { tree, r, count, err1 := BuildBMT(hashFunc, p, 32) d.btree = *tree @@ -359,10 +358,6 @@ func (d *state) Write(p []byte) (written int, err error) { return count, err } -func (d *state) Get(p []byte) (written int) { - return 3 -} - // Sum return the root hash of the BMT func (d *state) Sum(in []byte) []byte { return d.root.Base