Skip to content

Remove c_enum_constant_type #7153

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
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
13 changes: 0 additions & 13 deletions src/util/c_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,6 @@ bitvector_typet index_type()
return c_index_type();
}

/// return type of enum constants
bitvector_typet c_enum_constant_type()
{
// usually same as 'int',
// but might be unsigned, or shorter than 'int'
return signed_int_type();
}

bitvector_typet enum_constant_type()
{
return c_enum_constant_type();
}

signedbv_typet signed_int_type()
{
signedbv_typet result(config.ansi_c.int_width);
Expand Down
4 changes: 0 additions & 4 deletions src/util/c_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,6 @@ DEPRECATED(
SINCE(2022, 1, 13, "use c_index_type() or array_typet::index_type() instead"))
bitvector_typet index_type();

DEPRECATED(SINCE(2022, 1, 13, "use c_enum_constant_type() instead"))
bitvector_typet enum_constant_type();

bitvector_typet c_enum_constant_type();
bitvector_typet c_index_type();
signedbv_typet signed_int_type();
unsignedbv_typet unsigned_int_type();
Expand Down