Get rid of fPlus argument to FormatMoney

It's never used with any other value than false, the default.
This commit is contained in:
Wladimir J. van der Laan
2015-06-04 14:43:02 +02:00
parent 4b4b9a8de6
commit a04bdefbeb
4 changed files with 23 additions and 27 deletions

View File

@@ -11,7 +11,7 @@
using namespace std;
string FormatMoney(const CAmount& n, bool fPlus)
std::string FormatMoney(const CAmount& n)
{
// Note: not using straight sprintf here because we do NOT want
// localized number formatting.
@@ -29,8 +29,6 @@ string FormatMoney(const CAmount& n, bool fPlus)
if (n < 0)
str.insert((unsigned int)0, 1, '-');
else if (fPlus && n > 0)
str.insert((unsigned int)0, 1, '+');
return str;
}