Skip to content

Commit 6b35786

Browse files
committed
Remove deprecated *_typet constructors
These have been marked deprecated for several months.
1 parent 8e3f174 commit 6b35786

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/util/std_types.h

-31
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ class bool_typet:public typet
3333
}
3434
};
3535

36-
/// The NIL type, i.e., an invalid type, no value.
37-
/// \deprecated Use `optional<typet>` instead.
38-
// NOLINTNEXTLINE
39-
class DEPRECATED("Use `optional<typet>` instead.") nil_typet : public typet
40-
{
41-
public:
42-
nil_typet():typet(static_cast<const typet &>(get_nil_irep()))
43-
{
44-
}
45-
};
46-
4736
/// The empty type
4837
class empty_typet:public typet
4938
{
@@ -813,26 +802,11 @@ class code_typet:public typet
813802
return_type() = _return_type;
814803
}
815804

816-
/// \deprecated
817-
DEPRECATED("Use the two argument constructor instead")
818-
code_typet():typet(ID_code)
819-
{
820-
// make sure these properties are always there to avoid problems
821-
// with irept comparisons
822-
add(ID_parameters);
823-
add_type(ID_return_type);
824-
}
825-
826805
// used to be argumentt -- now uses standard terminology
827806

828807
class parametert:public exprt
829808
{
830809
public:
831-
DEPRECATED("use parametert(type) instead")
832-
parametert():exprt(ID_parameter)
833-
{
834-
}
835-
836810
explicit parametert(const typet &type):exprt(ID_parameter, type)
837811
{
838812
}
@@ -1808,11 +1782,6 @@ inline vector_typet &to_vector_type(typet &type)
18081782
class complex_typet:public type_with_subtypet
18091783
{
18101784
public:
1811-
DEPRECATED("use complex_typet(type) instead")
1812-
complex_typet():type_with_subtypet(ID_complex)
1813-
{
1814-
}
1815-
18161785
explicit complex_typet(const typet &_subtype):
18171786
type_with_subtypet(ID_complex, _subtype)
18181787
{

0 commit comments

Comments
 (0)