summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 16:10:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 16:10:48 -0400
commit019a42f199494c86b0aeea59caf9421d96a2c009 (patch)
tree33174f3a5d8cb742dd2e704aedb175fe94c60d82 /amount.cc
parent048d59afbccb859186112f2e6079d85b258d6e6b (diff)
downloadfork-ledger-019a42f199494c86b0aeea59caf9421d96a2c009.tar.gz
fork-ledger-019a42f199494c86b0aeea59caf9421d96a2c009.tar.bz2
fork-ledger-019a42f199494c86b0aeea59caf9421d96a2c009.zip
fixes
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/amount.cc b/amount.cc
index 8aaab7d9..a8f128cf 100644
--- a/amount.cc
+++ b/amount.cc
@@ -572,16 +572,6 @@ amount_t::operator std::string() const
return s.str();
}
-static inline char peek_next_nonws(std::istream& in)
-{
- char c = in.peek();
- while (! in.eof() && std::isspace(c)) {
- in.get(c);
- c = in.peek();
- }
- return c;
-}
-
void parse_quantity(std::istream& in, std::string& value)
{
static char buf[256];
@@ -605,7 +595,7 @@ void parse_commodity(std::istream& in, std::string& symbol)
assert(0);
} else {
READ_INTO(in, buf, 256, c, ! std::isspace(c) && ! std::isdigit(c) &&
- c != '-' && c != '.');
+ c != '-' && c != '.');
}
symbol = buf;
}