Skip to content

Commit 8fe28ff

Browse files
committed
Remove c_enum_constant_type
This was put in place to succeed enum_constant_type (which was then deprecated), but neither of which are used for the C front-end has it's own (much more elaborate) way of doing enum_constant_type.
1 parent 5834261 commit 8fe28ff

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/util/c_types.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,6 @@ bitvector_typet index_type()
2424
return c_index_type();
2525
}
2626

27-
/// return type of enum constants
28-
bitvector_typet c_enum_constant_type()
29-
{
30-
// usually same as 'int',
31-
// but might be unsigned, or shorter than 'int'
32-
return signed_int_type();
33-
}
34-
35-
bitvector_typet enum_constant_type()
36-
{
37-
return c_enum_constant_type();
38-
}
39-
4027
signedbv_typet signed_int_type()
4128
{
4229
signedbv_typet result(config.ansi_c.int_width);

src/util/c_types.h

-4
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,6 @@ DEPRECATED(
463463
SINCE(2022, 1, 13, "use c_index_type() or array_typet::index_type() instead"))
464464
bitvector_typet index_type();
465465

466-
DEPRECATED(SINCE(2022, 1, 13, "use c_enum_constant_type() instead"))
467-
bitvector_typet enum_constant_type();
468-
469-
bitvector_typet c_enum_constant_type();
470466
bitvector_typet c_index_type();
471467
signedbv_typet signed_int_type();
472468
unsignedbv_typet unsigned_int_type();

0 commit comments

Comments
 (0)