Skip to content

Commit 2a05101

Browse files
committed
qt: Remove unused functions from BitcoinUnits
Remove two functions that are now unused.
1 parent 91cce17 commit 2a05101

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/qt/bitcoinunits.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -80,28 +80,6 @@ qint64 BitcoinUnits::factor(int unit)
8080
}
8181
}
8282

83-
qint64 BitcoinUnits::maxAmount(int unit)
84-
{
85-
switch(unit)
86-
{
87-
case BTC: return Q_INT64_C(21000000);
88-
case mBTC: return Q_INT64_C(21000000000);
89-
case uBTC: return Q_INT64_C(21000000000000);
90-
default: return 0;
91-
}
92-
}
93-
94-
int BitcoinUnits::amountDigits(int unit)
95-
{
96-
switch(unit)
97-
{
98-
case BTC: return 8; // 21,000,000 (# digits, without commas)
99-
case mBTC: return 11; // 21,000,000,000
100-
case uBTC: return 14; // 21,000,000,000,000
101-
default: return 0;
102-
}
103-
}
104-
10583
int BitcoinUnits::decimals(int unit)
10684
{
10785
switch(unit)

src/qt/bitcoinunits.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ class BitcoinUnits: public QAbstractListModel
8282
static QString description(int unit);
8383
//! Number of Satoshis (1e-8) per unit
8484
static qint64 factor(int unit);
85-
//! Max amount per unit
86-
static qint64 maxAmount(int unit);
87-
//! Number of amount digits (to represent max number of coins)
88-
static int amountDigits(int unit);
8985
//! Number of decimals left
9086
static int decimals(int unit);
9187
//! Format as string

0 commit comments

Comments
 (0)