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