From 45f65084d6c2ad4fe3c0ed437411a5ba2ad55913 Mon Sep 17 00:00:00 2001 From: Nicolas Ochem Date: Sun, 2 Jul 2017 14:52:29 -0700 Subject: [PATCH] remove useless function --- sync/src/utils/best_headers_chain.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sync/src/utils/best_headers_chain.rs b/sync/src/utils/best_headers_chain.rs index 5da67ce4..f6e2d4d5 100644 --- a/sync/src/utils/best_headers_chain.rs +++ b/sync/src/utils/best_headers_chain.rs @@ -73,11 +73,6 @@ impl BestHeadersChain { .expect("storage_best_hash is always known") } - /// Get height of best block - pub fn block_count(&self) -> u32 { - self.best.len() - } - /// Insert new block header pub fn insert(&mut self, header: IndexedBlockHeader) { // append to the best chain