Skip to content

Commit d3c0b57

Browse files
Daniel Kroeningpeterschrammel
Daniel Kroening
authored andcommitted
remove legacy constructors
1 parent ce86319 commit d3c0b57

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

src/util/std_expr.h

-5
Original file line numberDiff line numberDiff line change
@@ -2599,11 +2599,6 @@ class address_of_exprt:public unary_exprt
25992599
{
26002600
}
26012601

2602-
address_of_exprt():
2603-
unary_exprt(ID_address_of, pointer_typet())
2604-
{
2605-
}
2606-
26072602
exprt &object()
26082603
{
26092604
return op0();

src/util/std_types.h

-22
Original file line numberDiff line numberDiff line change
@@ -1367,16 +1367,6 @@ inline c_bit_field_typet &to_c_bit_field_type(typet &type)
13671367
class pointer_typet:public bitvector_typet
13681368
{
13691369
public:
1370-
pointer_typet():bitvector_typet(ID_pointer)
1371-
{
1372-
}
1373-
1374-
// this one will go away; use the one with width
1375-
explicit pointer_typet(const typet &_subtype):
1376-
bitvector_typet(ID_pointer, _subtype)
1377-
{
1378-
}
1379-
13801370
pointer_typet(const typet &_subtype, std::size_t width):
13811371
bitvector_typet(ID_pointer, _subtype, width)
13821372
{
@@ -1418,18 +1408,6 @@ inline pointer_typet &to_pointer_type(typet &type)
14181408
class reference_typet:public pointer_typet
14191409
{
14201410
public:
1421-
reference_typet()
1422-
{
1423-
set(ID_C_reference, true);
1424-
}
1425-
1426-
// this one will go away; use the one with width
1427-
explicit reference_typet(const typet &_subtype):
1428-
pointer_typet(_subtype)
1429-
{
1430-
set(ID_C_reference, true);
1431-
}
1432-
14331411
reference_typet(const typet &_subtype, std::size_t _width):
14341412
pointer_typet(_subtype, _width)
14351413
{

0 commit comments

Comments
 (0)