Removed unneeded break statements
This commit is contained in:
parent
aba92526c3
commit
8887fe9fa9
3 changed files with 0 additions and 8 deletions
|
|
@ -213,7 +213,6 @@ test_ident:
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return token_t(token_t::TERM, ident);
|
return token_t(token_t::TERM, ident);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -404,7 +404,6 @@ value_t& value_t::operator+=(const value_t& val)
|
||||||
as_amount_lval() += val.as_long();
|
as_amount_lval() += val.as_long();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
|
||||||
case AMOUNT:
|
case AMOUNT:
|
||||||
if (as_amount().commodity() != val.as_amount().commodity()) {
|
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();
|
as_amount_lval() += val.as_amount();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
|
||||||
case BALANCE:
|
case BALANCE:
|
||||||
in_place_cast(BALANCE);
|
in_place_cast(BALANCE);
|
||||||
|
|
@ -539,7 +537,6 @@ value_t& value_t::operator-=(const value_t& val)
|
||||||
in_place_simplify();
|
in_place_simplify();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
|
||||||
case AMOUNT:
|
case AMOUNT:
|
||||||
if (as_amount().commodity() != val.as_amount().commodity()) {
|
if (as_amount().commodity() != val.as_amount().commodity()) {
|
||||||
|
|
@ -552,7 +549,6 @@ value_t& value_t::operator-=(const value_t& val)
|
||||||
in_place_simplify();
|
in_place_simplify();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
|
||||||
case BALANCE:
|
case BALANCE:
|
||||||
in_place_cast(BALANCE);
|
in_place_cast(BALANCE);
|
||||||
|
|
@ -944,7 +940,6 @@ bool value_t::is_less_than(const value_t& val) const
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
@ -1061,7 +1056,6 @@ bool value_t::is_greater_than(const value_t& val) const
|
||||||
return false;
|
return false;
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -598,7 +598,6 @@ namespace {
|
||||||
switch (op->kind) {
|
switch (op->kind) {
|
||||||
case expr_t::op_t::VALUE:
|
case expr_t::op_t::VALUE:
|
||||||
return op->as_value().to_boolean();
|
return op->as_value().to_boolean();
|
||||||
break;
|
|
||||||
|
|
||||||
case expr_t::op_t::O_MATCH:
|
case expr_t::op_t::O_MATCH:
|
||||||
if (op->left()->kind == expr_t::op_t::IDENT &&
|
if (op->left()->kind == expr_t::op_t::IDENT &&
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue