@@ -224,11 +224,6 @@ impl TransactionRecord {
224
224
self . query_sum_value ( OutputQuery :: any ( ) )
225
225
}
226
226
227
- /// TODO: Add Doc Comment Here!
228
- pub fn get_transparent_value_spent ( & self ) -> u64 {
229
- self . total_transparent_value_spent
230
- }
231
-
232
227
/// TODO: Add Doc Comment Here!
233
228
#[ deprecated(
234
229
note = "replaced by `calculate_transaction_fee` method for [`crate::wallet::transaction_records_by_id::TransactionRecordsById`]"
@@ -270,13 +265,6 @@ impl TransactionRecord {
270
265
|| !self . transparent_outputs . is_empty ( )
271
266
}
272
267
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
-
280
268
/// TODO: Add Doc Comment Here!
281
269
fn pool_change_returned < D : DomainWalletExt > ( & self ) -> u64
282
270
where
@@ -307,7 +295,7 @@ impl TransactionRecord {
307
295
/// TODO: Add Doc Comment Here!
308
296
pub fn value_spent_by_pool ( & self ) -> [ u64 ; 3 ] {
309
297
[
310
- self . get_transparent_value_spent ( ) ,
298
+ self . total_transparent_value_spent ,
311
299
self . total_sapling_value_spent ,
312
300
self . total_orchard_value_spent ,
313
301
]
@@ -803,7 +791,7 @@ mod tests {
803
791
#[ test]
804
792
pub fn blank_record ( ) {
805
793
let new = TransactionRecordBuilder :: default ( ) . build ( ) ;
806
- assert_eq ! ( new. get_transparent_value_spent ( ) , 0 ) ;
794
+ assert_eq ! ( new. total_transparent_value_spent , 0 ) ;
807
795
assert ! ( !new. is_outgoing_transaction( ) ) ;
808
796
assert ! ( !new. is_incoming_transaction( ) ) ;
809
797
// assert_eq!(new.net_spent(), 0);
0 commit comments