aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/queue.go
diff options
context:
space:
mode:
Diffstat (limited to 'eth/downloader/queue.go')
-rw-r--r--eth/downloader/queue.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go
index d849d4d68..515440bca 100644
--- a/eth/downloader/queue.go
+++ b/eth/downloader/queue.go
@@ -63,16 +63,6 @@ func (q *queue) Reset() {
q.blockCache = nil
}
-// Done checks if all the downloads have been retrieved, wiping the queue.
-func (q *queue) Done() {
- q.lock.Lock()
- defer q.lock.Unlock()
-
- if len(q.blockCache) == 0 {
- q.Reset()
- }
-}
-
// Size retrieves the number of hashes in the queue, returning separately for
// pending and already downloaded.
func (q *queue) Size() (int, int) {