diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-11 21:11:56 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-15 14:22:36 +0800 |
commit | 2937903299b9b965eb54a9d5031714d6a7af972e (patch) | |
tree | f231924c42cbdaecb3ee37758fcb3ab42dd9db35 /eth/downloader/queue_test.go | |
parent | 66d3dc8690e0aa551e7b35a17006a2135b51c9bd (diff) | |
download | go-tangerine-2937903299b9b965eb54a9d5031714d6a7af972e.tar go-tangerine-2937903299b9b965eb54a9d5031714d6a7af972e.tar.gz go-tangerine-2937903299b9b965eb54a9d5031714d6a7af972e.tar.bz2 go-tangerine-2937903299b9b965eb54a9d5031714d6a7af972e.tar.lz go-tangerine-2937903299b9b965eb54a9d5031714d6a7af972e.tar.xz go-tangerine-2937903299b9b965eb54a9d5031714d6a7af972e.tar.zst go-tangerine-2937903299b9b965eb54a9d5031714d6a7af972e.zip |
eth/downloader: remove uneeded testing functions
Diffstat (limited to 'eth/downloader/queue_test.go')
-rw-r--r-- | eth/downloader/queue_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/eth/downloader/queue_test.go b/eth/downloader/queue_test.go deleted file mode 100644 index ee6141f71..000000000 --- a/eth/downloader/queue_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package downloader - -import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "gopkg.in/fatih/set.v0" -) - -func createHashSet(hashes []common.Hash) *set.Set { - hset := set.New() - - for _, hash := range hashes { - hset.Add(hash) - } - - return hset -} - -func createBlocksFromHashSet(hashes *set.Set) []*types.Block { - blocks := make([]*types.Block, hashes.Size()) - - var i int - hashes.Each(func(v interface{}) bool { - blocks[i] = createBlock(i, common.Hash{}, v.(common.Hash)) - i++ - return true - }) - - return blocks -} |