Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yancyribbens committed Feb 2, 2024
1 parent 71dc96b commit a9630eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions units/src/amount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,8 @@ fn fmt_satoshi_in(
pub struct Amount(u64);

impl Amount {
/// The zero amount.
pub const TEST: Amount = Amount(1111);
/// The zero amount.
pub const ZERO: Amount = Amount(0);
/// Exactly one satoshi.
Expand Down Expand Up @@ -762,10 +764,6 @@ impl Amount {
f64::from_str(&self.to_string_in(denom)).unwrap()
}

pub fn amount_test(self) -> u64 {
0
}

/// Express this [`Amount`] as a floating-point value in Bitcoin.
///
/// Please be aware of the risk of using floating-point numbers.
Expand Down

0 comments on commit a9630eb

Please sign in to comment.