Skip to content

Commit d5a1840

Browse files
committed
Remove deprecated exprt::move_to_operands
All methods were deprecated in 2018. There are no in-tree users left.
1 parent ff1e81e commit d5a1840

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

src/util/expr.cpp

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -35,51 +35,6 @@ std::size_t exprt::size() const
3535
return size;
3636
}
3737

38-
/// Move the given argument to the end of `exprt`'s operands.
39-
/// The argument is destroyed and mutated to a reference to a nil `irept`.
40-
/// \param expr: `exprt` to append to the operands
41-
void exprt::move_to_operands(exprt &expr)
42-
{
43-
operandst &op=operands();
44-
op.push_back(static_cast<const exprt &>(get_nil_irep()));
45-
op.back().swap(expr);
46-
}
47-
48-
/// Move the given arguments to the end of `exprt`'s operands.
49-
/// The arguments are destroyed and mutated to a reference to a nil `irept`.
50-
/// \param e1: first `exprt` to append to the operands
51-
/// \param e2: second `exprt` to append to the operands
52-
void exprt::move_to_operands(exprt &e1, exprt &e2)
53-
{
54-
operandst &op=operands();
55-
#ifndef USE_LIST
56-
op.reserve(op.size()+2);
57-
#endif
58-
op.push_back(static_cast<const exprt &>(get_nil_irep()));
59-
op.back().swap(e1);
60-
op.push_back(static_cast<const exprt &>(get_nil_irep()));
61-
op.back().swap(e2);
62-
}
63-
64-
/// Move the given arguments to the end of `exprt`'s operands.
65-
/// The arguments are destroyed and mutated to a reference to a nil `irept`.
66-
/// \param e1: first `exprt` to append to the operands
67-
/// \param e2: second `exprt` to append to the operands
68-
/// \param e3: third `exprt` to append to the operands
69-
void exprt::move_to_operands(exprt &e1, exprt &e2, exprt &e3)
70-
{
71-
operandst &op=operands();
72-
#ifndef USE_LIST
73-
op.reserve(op.size()+3);
74-
#endif
75-
op.push_back(static_cast<const exprt &>(get_nil_irep()));
76-
op.back().swap(e1);
77-
op.push_back(static_cast<const exprt &>(get_nil_irep()));
78-
op.back().swap(e2);
79-
op.push_back(static_cast<const exprt &>(get_nil_irep()));
80-
op.back().swap(e3);
81-
}
82-
8338
/// Return whether the expression is a constant.
8439
/// \return True if is a constant, false otherwise
8540
bool exprt::is_constant() const

src/util/expr.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Author: Daniel Kroening, [email protected]
1010
#define CPROVER_UTIL_EXPR_H
1111

1212
#include "as_const.h"
13-
#include "deprecate.h"
1413
#include "type.h"
1514
#include "validate_expressions.h"
1615
#include "validate_types.h"
@@ -129,24 +128,6 @@ class exprt:public irept
129128
void reserve_operands(operandst::size_type n)
130129
{ operands().reserve(n) ; }
131130

132-
DEPRECATED(SINCE(2018, 10, 1, "use add_to_operands(std::move(expr)) instead"))
133-
void move_to_operands(exprt &expr);
134-
135-
DEPRECATED(SINCE(
136-
2018,
137-
10,
138-
1,
139-
"use add_to_operands(std::move(e1), std::move(e2)) instead"))
140-
void move_to_operands(exprt &e1, exprt &e2);
141-
142-
DEPRECATED(SINCE(
143-
2018,
144-
10,
145-
1,
146-
"use add_to_operands(std::move(e1), std::move(e2), std::move(e3))"
147-
"instead"))
148-
void move_to_operands(exprt &e1, exprt &e2, exprt &e3);
149-
150131
/// Copy the given argument to the end of `exprt`'s operands.
151132
/// \param expr: `exprt` to append to the operands
152133
void copy_to_operands(const exprt &expr)

0 commit comments

Comments
 (0)