Skip to content

Commit e9acd33

Browse files
author
Daniel Kroening
committed
remove exprt::make_typecast
This method has been deprecated and has no users.
1 parent f7527ee commit e9acd33

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/util/expr.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,6 @@ void exprt::move_to_operands(exprt &e1, exprt &e2, exprt &e3)
8080
op.back().swap(e3);
8181
}
8282

83-
/// Create a \ref typecast_exprt to the given type.
84-
/// \param _type: cast destination type
85-
/// \deprecated use constructors instead
86-
void exprt::make_typecast(const typet &_type)
87-
{
88-
typecast_exprt new_expr(*this, _type);
89-
90-
swap(new_expr);
91-
}
92-
9383
/// Return whether the expression is a constant.
9484
/// \return True if is a constant, false otherwise
9585
bool exprt::is_constant() const

src/util/expr.h

-4
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,6 @@ class exprt:public irept
237237
op.push_back(std::move(e3));
238238
}
239239

240-
DEPRECATED(SINCE(2019, 1, 19, "use typecast_exprt() instead"))
241-
void make_typecast(const typet &_type);
242-
243240
DEPRECATED(SINCE(2019, 5, 28, "use make_boolean_expr(value) instead"))
244241
void make_bool(bool value);
245242

@@ -381,7 +378,6 @@ class expr_protectedt : public exprt
381378
// protect these low-level methods
382379
using exprt::add;
383380
using exprt::make_bool;
384-
using exprt::make_typecast;
385381
using exprt::op0;
386382
using exprt::op1;
387383
using exprt::op2;

0 commit comments

Comments
 (0)