Skip to content

Commit 8b5d37a

Browse files
authored
Merge pull request #7154 from tautschnig/cleanup/remove-deprecated-exprt-methods
Remove deprecated variants of exprt::{add,copy}_to_operands
2 parents 1253dfb + 75d0513 commit 8b5d37a

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

src/util/expr.h

-50
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"
@@ -172,29 +171,6 @@ class exprt:public irept
172171
operands().push_back(std::move(expr));
173172
}
174173

175-
/// Copy the given arguments to the end of `exprt`'s operands.
176-
/// \param e1: first `exprt` to append to the operands
177-
/// \param e2: second `exprt` to append to the operands
178-
DEPRECATED(SINCE(2022, 2, 15, "use add_to_operands(&&, &&) instead"))
179-
void copy_to_operands(const exprt &e1, const exprt &e2)
180-
{
181-
operandst &op = operands();
182-
#ifndef USE_LIST
183-
op.reserve(op.size() + 2);
184-
#endif
185-
op.push_back(e1);
186-
op.push_back(e2);
187-
}
188-
189-
/// Add the given arguments to the end of `exprt`'s operands.
190-
/// \param e1: first `exprt` to append to the operands
191-
/// \param e2: second `exprt` to append to the operands
192-
DEPRECATED(SINCE(2022, 2, 15, "use add_to_operands(&&, &&) instead"))
193-
void add_to_operands(const exprt &e1, const exprt &e2)
194-
{
195-
copy_to_operands(e1, e2);
196-
}
197-
198174
/// Add the given arguments to the end of `exprt`'s operands.
199175
/// \param e1: first `exprt` to append to the operands
200176
/// \param e2: second `exprt` to append to the operands
@@ -208,32 +184,6 @@ class exprt:public irept
208184
op.push_back(std::move(e2));
209185
}
210186

211-
/// Add the given arguments to the end of `exprt`'s operands.
212-
/// \param e1: first `exprt` to append to the operands
213-
/// \param e2: second `exprt` to append to the operands
214-
/// \param e3: third `exprt` to append to the operands
215-
DEPRECATED(SINCE(2022, 2, 15, "use add_to_operands(&&, &&, &&) instead"))
216-
void add_to_operands(const exprt &e1, const exprt &e2, const exprt &e3)
217-
{
218-
copy_to_operands(e1, e2, e3);
219-
}
220-
221-
/// Copy the given arguments to the end of `exprt`'s operands.
222-
/// \param e1: first `exprt` to append to the operands
223-
/// \param e2: second `exprt` to append to the operands
224-
/// \param e3: third `exprt` to append to the operands
225-
DEPRECATED(SINCE(2022, 2, 15, "use add_to_operands(&&, &&, &&) instead"))
226-
void copy_to_operands(const exprt &e1, const exprt &e2, const exprt &e3)
227-
{
228-
operandst &op = operands();
229-
#ifndef USE_LIST
230-
op.reserve(op.size() + 3);
231-
#endif
232-
op.push_back(e1);
233-
op.push_back(e2);
234-
op.push_back(e3);
235-
}
236-
237187
/// Add the given arguments to the end of `exprt`'s operands.
238188
/// \param e1: first `exprt` to append to the operands
239189
/// \param e2: second `exprt` to append to the operands

0 commit comments

Comments
 (0)