Skip to content

Commit 27eb9aa

Browse files
committed
remove deprecated net_spent method
1 parent 3366bc6 commit 27eb9aa

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

zingolib/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6464
- `do_save_to_buffer`
6565
- `do_save_to_buffer_sync`
6666
- `fix_spent_at_height`
67+
- `TransactionRecord::net_spent`

zingolib/src/wallet/transaction_record.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,6 @@ impl TransactionRecord {
270270
|| !self.transparent_outputs.is_empty()
271271
}
272272

273-
/// TODO: Add Doc Comment Here!
274-
#[deprecated(note = "unused function with misleading name")]
275-
pub fn net_spent(&self) -> u64 {
276-
assert!(self.is_outgoing_transaction());
277-
self.total_value_spent() - self.total_change_returned()
278-
}
279-
280273
/// TODO: Add Doc Comment Here!
281274
fn pool_change_returned<D: DomainWalletExt>(&self) -> u64
282275
where

0 commit comments

Comments
 (0)