Skip to content

Remove deprecated variants of exprt::{add,copy}_to_operands #7154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions src/util/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Author: Daniel Kroening, [email protected]
#define CPROVER_UTIL_EXPR_H

#include "as_const.h"
#include "deprecate.h"
#include "type.h"
#include "validate_expressions.h"
#include "validate_types.h"
Expand Down Expand Up @@ -172,29 +171,6 @@ class exprt:public irept
operands().push_back(std::move(expr));
}

/// Copy the given arguments to the end of `exprt`'s operands.
/// \param e1: first `exprt` to append to the operands
/// \param e2: second `exprt` to append to the operands
DEPRECATED(SINCE(2022, 2, 15, "use add_to_operands(&&, &&) instead"))
void copy_to_operands(const exprt &e1, const exprt &e2)
{
operandst &op = operands();
#ifndef USE_LIST
op.reserve(op.size() + 2);
#endif
op.push_back(e1);
op.push_back(e2);
}

/// Add the given arguments to the end of `exprt`'s operands.
/// \param e1: first `exprt` to append to the operands
/// \param e2: second `exprt` to append to the operands
DEPRECATED(SINCE(2022, 2, 15, "use add_to_operands(&&, &&) instead"))
void add_to_operands(const exprt &e1, const exprt &e2)
{
copy_to_operands(e1, e2);
}

/// Add the given arguments to the end of `exprt`'s operands.
/// \param e1: first `exprt` to append to the operands
/// \param e2: second `exprt` to append to the operands
Expand All @@ -208,32 +184,6 @@ class exprt:public irept
op.push_back(std::move(e2));
}

/// Add the given arguments to the end of `exprt`'s operands.
/// \param e1: first `exprt` to append to the operands
/// \param e2: second `exprt` to append to the operands
/// \param e3: third `exprt` to append to the operands
DEPRECATED(SINCE(2022, 2, 15, "use add_to_operands(&&, &&, &&) instead"))
void add_to_operands(const exprt &e1, const exprt &e2, const exprt &e3)
{
copy_to_operands(e1, e2, e3);
}

/// Copy the given arguments to the end of `exprt`'s operands.
/// \param e1: first `exprt` to append to the operands
/// \param e2: second `exprt` to append to the operands
/// \param e3: third `exprt` to append to the operands
DEPRECATED(SINCE(2022, 2, 15, "use add_to_operands(&&, &&, &&) instead"))
void copy_to_operands(const exprt &e1, const exprt &e2, const exprt &e3)
{
operandst &op = operands();
#ifndef USE_LIST
op.reserve(op.size() + 3);
#endif
op.push_back(e1);
op.push_back(e2);
op.push_back(e3);
}

/// Add the given arguments to the end of `exprt`'s operands.
/// \param e1: first `exprt` to append to the operands
/// \param e2: second `exprt` to append to the operands
Expand Down