diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-10 20:08:31 -1000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:09:32 -0600 |
commit | 8887fe9fa9bf8273573b4bc03d221b7b103cee75 (patch) | |
tree | 61198573b08a649dc13b05243f4cbe1fef02d620 /src | |
parent | aba92526c37323fea2d02c6ce04c4e1ba79e4767 (diff) | |
download | fork-ledger-8887fe9fa9bf8273573b4bc03d221b7b103cee75.tar.gz fork-ledger-8887fe9fa9bf8273573b4bc03d221b7b103cee75.tar.bz2 fork-ledger-8887fe9fa9bf8273573b4bc03d221b7b103cee75.zip |
Removed unneeded break statements
Diffstat (limited to 'src')
-rw-r--r-- | src/query.cc | 1 | ||||
-rw-r--r-- | src/value.cc | 6 | ||||
-rw-r--r-- | src/xact.cc | 1 |
3 files changed, 0 insertions, 8 deletions
diff --git a/src/query.cc b/src/query.cc index b0f8d691..812123cb 100644 --- a/src/query.cc +++ b/src/query.cc @@ -213,7 +213,6 @@ test_ident: } else return token_t(token_t::TERM, ident); - break; } } diff --git a/src/value.cc b/src/value.cc index 89a0d6d3..b306581d 100644 --- a/src/value.cc +++ b/src/value.cc @@ -404,7 +404,6 @@ value_t& value_t::operator+=(const value_t& val) as_amount_lval() += val.as_long(); return *this; } - break; case AMOUNT: if (as_amount().commodity() != val.as_amount().commodity()) { @@ -414,7 +413,6 @@ value_t& value_t::operator+=(const value_t& val) as_amount_lval() += val.as_amount(); return *this; } - break; case BALANCE: in_place_cast(BALANCE); @@ -539,7 +537,6 @@ value_t& value_t::operator-=(const value_t& val) in_place_simplify(); return *this; } - break; case AMOUNT: if (as_amount().commodity() != val.as_amount().commodity()) { @@ -552,7 +549,6 @@ value_t& value_t::operator-=(const value_t& val) in_place_simplify(); return *this; } - break; case BALANCE: in_place_cast(BALANCE); @@ -944,7 +940,6 @@ bool value_t::is_less_than(const value_t& val) const return true; else return false; - break; } default: break; @@ -1061,7 +1056,6 @@ bool value_t::is_greater_than(const value_t& val) const return false; else return true; - break; } default: break; diff --git a/src/xact.cc b/src/xact.cc index 7f0b1afe..596b39fa 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -598,7 +598,6 @@ namespace { switch (op->kind) { case expr_t::op_t::VALUE: return op->as_value().to_boolean(); - break; case expr_t::op_t::O_MATCH: if (op->left()->kind == expr_t::op_t::IDENT && |