Skip to content

Commit

Permalink
Remove decimals() steemit#2003
Browse files Browse the repository at this point in the history
  • Loading branch information
theoreticalbts committed Jan 23, 2018
1 parent 3a688b6 commit 67bc45b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

namespace steem { namespace plugins { namespace condenser_api {

uint8_t legacy_asset::decimals()const
{
return symbol.decimals();
}

int64_t legacy_asset::precision()const
{
static int64_t table[] = {
Expand All @@ -16,7 +11,7 @@ int64_t legacy_asset::precision()const
100000000000ll, 1000000000000ll,
10000000000000ll, 100000000000000ll
};
uint8_t d = decimals();
uint8_t d = symbol.decimals();
return table[ d ];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ struct legacy_asset
return leg;
}

uint8_t decimals()const;
int64_t precision()const;

string to_string()const;
Expand Down
1 change: 0 additions & 1 deletion libraries/protocol/include/steem/protocol/asset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace steem { namespace protocol {
share_type amount;
asset_symbol_type symbol;

uint8_t decimals()const;
void validate()const;

asset& operator += ( const asset& o )
Expand Down

0 comments on commit 67bc45b

Please sign in to comment.