From 019a42f199494c86b0aeea59caf9421d96a2c009 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 17 Aug 2004 16:10:48 -0400 Subject: fixes --- amount.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'amount.cc') 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; } -- cgit v1.2.3