Skip to content

Commit dcb99a2

Browse files
authored
Merge pull request #7153 from tautschnig/cleanup/remove-enum_constant_type
Remove c_enum_constant_type
2 parents 1c9f24e + 8fe28ff commit dcb99a2

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
@@ -473,10 +473,6 @@ DEPRECATED(
473473
SINCE(2022, 1, 13, "use c_index_type() or array_typet::index_type() instead"))
474474
bitvector_typet index_type();
475475

476-
DEPRECATED(SINCE(2022, 1, 13, "use c_enum_constant_type() instead"))
477-
bitvector_typet enum_constant_type();
478-
479-
bitvector_typet c_enum_constant_type();
480476
bitvector_typet c_index_type();
481477
signedbv_typet signed_int_type();
482478
unsignedbv_typet unsigned_int_type();

0 commit comments

Comments
 (0)