From 7e5bd5048d71669ba12e0d143e0643c37e0d1199 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 27 Sep 2024 11:38:19 +1000 Subject: [PATCH] Remove docs on deprecated is_null function Our `define_extension_trait` macro cannot handle examples in rustdocs, since these docs are on the deprecated `OutPoint::is_null` function just remove them. --- bitcoin/src/blockdata/transaction.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 0e5d937f9..e672322f0 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -111,19 +111,6 @@ impl OutPoint { pub fn null() -> OutPoint { Self::COINBASE_PREVOUT } /// Checks if an `OutPoint` is "null". - /// - /// # Examples - /// - /// ```rust - /// use bitcoin::constants::genesis_block; - /// use bitcoin::params; - /// - /// let block = genesis_block(¶ms::MAINNET); - /// let tx = &block.txdata[0]; - /// - /// // Coinbase transactions don't have any previous output. - /// assert!(tx.input[0].previous_output.is_null()); - /// ``` #[inline] #[deprecated(since = "TBD", note = "use outpoint == OutPoint::COINBASE_PREVOUT instead")] pub fn is_null(&self) -> bool { *self == OutPoint::null() }