From 53942cced492138174638a8087b08f643a8d41ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Fri, 5 Apr 2024 15:59:09 +0800 Subject: [PATCH] chore(chain)!: rm `From for BTreeMap` I don't think this was ever used. The only possible usecase I can think of is for tests, but I don't think that is a strong enough incentive for us to keep this. --- crates/chain/src/local_chain.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crates/chain/src/local_chain.rs b/crates/chain/src/local_chain.rs index cd1b1de42..100a9662c 100644 --- a/crates/chain/src/local_chain.rs +++ b/crates/chain/src/local_chain.rs @@ -246,17 +246,6 @@ pub struct LocalChain { tip: CheckPoint, } -// TODO: Figure out whether we can get rid of this -impl From for BTreeMap { - fn from(value: LocalChain) -> Self { - value - .tip - .iter() - .map(|cp| (cp.height(), cp.hash())) - .collect() - } -} - impl ChainOracle for LocalChain { type Error = Infallible;