summaryrefslogtreecommitdiff
path: root/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-16 11:58:44 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:30 -0400
commitb1a04923fefdc83387b776b6684188ce2175bfc4 (patch)
tree0ee386b33da1d30d7e1a63a0f02cfaf764f75e4b /value.cc
parent2964dd15b24787162c53560ae9ceae5a92cfc86d (diff)
downloadfork-ledger-b1a04923fefdc83387b776b6684188ce2175bfc4.tar.gz
fork-ledger-b1a04923fefdc83387b776b6684188ce2175bfc4.tar.bz2
fork-ledger-b1a04923fefdc83387b776b6684188ce2175bfc4.zip
*** empty log message ***
Diffstat (limited to 'value.cc')
-rw-r--r--value.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/value.cc b/value.cc
index 807926bc..9bb92e7d 100644
--- a/value.cc
+++ b/value.cc
@@ -1233,11 +1233,9 @@ value_t value_t::strip_annotations(const bool keep_price,
{
switch (type) {
case BOOLEAN:
- throw new value_error("Cannot strip commodity annotations from a boolean");
case INTEGER:
- return *this;
case DATETIME:
- throw new value_error("Cannot strip commodity annotations from a date/time");
+ return *this;
case AMOUNT:
return ((amount_t *) data)->strip_annotations