Skip to content

Remove empty function make_constant_rec #2401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/ansi-c/c_typecheck_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ class c_typecheck_baset:
virtual void make_index_type(exprt &expr);
virtual void make_constant(exprt &expr);
virtual void make_constant_index(exprt &expr);
virtual void make_constant_rec(exprt &expr);

virtual bool gcc_types_compatible_p(const typet &, const typet &);

Expand Down
5 changes: 0 additions & 5 deletions src/ansi-c/c_typecheck_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3451,7 +3451,6 @@ void c_typecheck_baset::typecheck_side_effect_assignment(

void c_typecheck_baset::make_constant(exprt &expr)
{
make_constant_rec(expr);
simplify(expr, *this);

if(!expr.is_constant() &&
Expand All @@ -3478,7 +3477,3 @@ void c_typecheck_baset::make_constant_index(exprt &expr)
throw 0;
}
}

void c_typecheck_baset::make_constant_rec(exprt &expr)
{
}