Various cleanups:

* Replace SYSTEM_NAME and other macros with C++ constructs
* Remove RIPPLE_ARRAYSIZE and use std::extent or ranged for loops
* Remove old-style, unused offer crossing unit test
* Make STAmount::saFromRate free and remove default argument
This commit is contained in:
Nik Bougalis
2014-12-04 03:16:41 -08:00
parent 8e792855e0
commit 4a49fefdd9
27 changed files with 305 additions and 1152 deletions

View File

@@ -851,6 +851,12 @@ void STAmount::set (std::int64_t v)
//------------------------------------------------------------------------------
STAmount
amountFromRate (std::uint64_t uRate)
{
return STAmount (noIssue(), uRate, -9, false);
}
STAmount
amountFromQuality (std::uint64_t rate)
{
@@ -1135,7 +1141,6 @@ operator- (STAmount const& value)
//
//------------------------------------------------------------------------------
// NIKB TODO Make Amount::divide skip math if den == QUALITY_ONE
STAmount
divide (STAmount const& num, STAmount const& den, Issue const& issue)
{