diff --git a/drake/common/symbolic_expression_cell.cc b/drake/common/symbolic_expression_cell.cc index d2dea9113ca7..afa8ff761704 100644 --- a/drake/common/symbolic_expression_cell.cc +++ b/drake/common/symbolic_expression_cell.cc @@ -1246,10 +1246,8 @@ double ExpressionIfThenElse::Evaluate(const Environment& env) const { } Expression ExpressionIfThenElse::Substitute(const Substitution& s) const { - // TODO(soonho): implement this. - throw runtime_error("Not yet implemented."); - // return if_then_else(f_cond_.Substitute(s), e_then_.Substitute(s), - // e_else_.Substitute(s)); + return if_then_else(f_cond_.Substitute(s), e_then_.Substitute(s), + e_else_.Substitute(s)); } ostream& ExpressionIfThenElse::Display(ostream& os) const {