Drop unused `UtxoLookup` impl for `BitcoindClient`
authorMatt Corallo <git@bluematt.me>
Sat, 21 Oct 2023 22:12:02 +0000 (22:12 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 13 Nov 2023 23:02:34 +0000 (23:02 +0000)
src/bitcoind_client.rs

index 9f28015cf5ed0326190ac88b79b67f736c8de4a0..67b42ef6c5a82b69aad12e10110ed8d4f989a2d4 100644 (file)
@@ -15,7 +15,6 @@ use bitcoin::{OutPoint, Script, TxOut, WPubkeyHash, XOnlyPublicKey};
 use lightning::chain::chaininterface::{BroadcasterInterface, ConfirmationTarget, FeeEstimator};
 use lightning::events::bump_transaction::{Utxo, WalletSource};
 use lightning::log_error;
-use lightning::routing::utxo::{UtxoLookup, UtxoResult};
 use lightning::util::logger::Logger;
 use lightning_block_sync::http::HttpEndpoint;
 use lightning_block_sync::rpc::RpcClient;
@@ -296,13 +295,6 @@ impl BroadcasterInterface for BitcoindClient {
        }
 }
 
-impl UtxoLookup for BitcoindClient {
-       fn get_utxo(&self, _genesis_hash: &BlockHash, _short_channel_id: u64) -> UtxoResult {
-               // P2PGossipSync takes None for a UtxoLookup, so this will never be called.
-               todo!();
-       }
-}
-
 impl WalletSource for BitcoindClient {
        fn list_confirmed_utxos(&self) -> Result<Vec<Utxo>, ()> {
                let utxos = tokio::task::block_in_place(move || {