Skip to content

Commit

Permalink
chore: wrong cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed Nov 20, 2023
1 parent 66d700e commit 9eb73d7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sn_transfers/src/wallet/data_payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ impl PaymentQuote {
}

/// test utility to create a dummy quote
#[cfg(test)]
#[allow(dead_code)]
pub fn new_dummy(xorname: XorName, cost: NanoTokens) -> Self {
Self {
content: xorname,
Expand All @@ -103,10 +101,4 @@ impl PaymentQuote {
signature: vec![],
}
}

#[cfg(not(test))]
pub fn new_dummy(_xorname: XorName, _cost: NanoTokens) -> Self {
use core::panic;
panic!("This function is only available in test mode")
}
}

0 comments on commit 9eb73d7

Please sign in to comment.