summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
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;
}