Skip to content

Commit 6d5e580

Browse files
authored
Merge pull request #5550 from diffblue/remove_make_bool
Remove exprt::make_bool
2 parents bf62883 + 22d448b commit 6d5e580

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/util/expr.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,6 @@ bool exprt::is_false() const
105105
get(ID_value)==ID_false;
106106
}
107107

108-
/// Replace the expression by a Boolean expression representing \p value.
109-
/// \param value: the Boolean value to give to the expression
110-
/// \deprecated use constructors instead
111-
void exprt::make_bool(bool value)
112-
{
113-
*this=exprt(ID_constant, typet(ID_bool));
114-
set(ID_value, value?ID_true:ID_false);
115-
}
116-
117108
/// Return whether the expression represents a Boolean.
118109
/// \return True if is a Boolean, false otherwise.
119110
bool exprt::is_boolean() const

src/util/expr.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ class exprt:public irept
239239
op.push_back(std::move(e3));
240240
}
241241

242-
DEPRECATED(SINCE(2019, 5, 28, "use make_boolean_expr(value) instead"))
243-
void make_bool(bool value);
244-
245242
bool is_constant() const;
246243
bool is_true() const;
247244
bool is_false() const;
@@ -379,7 +376,6 @@ class expr_protectedt : public exprt
379376

380377
// protect these low-level methods
381378
using exprt::add;
382-
using exprt::make_bool;
383379
using exprt::op0;
384380
using exprt::op1;
385381
using exprt::op2;

0 commit comments

Comments
 (0)