Skip to content

Commit 7e76d47

Browse files
committed
Remove unused message_handler from smt_incremental_dry_run_solvert
1 parent 5d603e4 commit 7e76d47

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/goto-checker/solver_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ solver_factoryt::get_incremental_smt2(std::string solver_command)
380380
? nullptr
381381
: open_outfile_and_check(outfile_arg, message_handler, "--outfile");
382382
solver_process = util_make_unique<smt_incremental_dry_run_solvert>(
383-
message_handler, on_std_out ? std::cout : *outfile, std::move(outfile));
383+
on_std_out ? std::cout : *outfile, std::move(outfile));
384384
}
385385
else
386386
{

src/solvers/smt2_incremental/smt_solver_process.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,9 @@ smt_responset smt_piped_solver_processt::receive_response(
8181
}
8282

8383
smt_incremental_dry_run_solvert::smt_incremental_dry_run_solvert(
84-
message_handlert &message_handler,
8584
std::ostream &out_stream,
8685
std::unique_ptr<std::ostream> file_stream)
87-
: file_stream(std::move(file_stream)),
88-
out_stream(out_stream),
89-
log(message_handler)
86+
: file_stream(std::move(file_stream)), out_stream(out_stream)
9087
{
9188
}
9289

src/solvers/smt2_incremental/smt_solver_process.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,12 @@ class smt_piped_solver_processt : public smt_base_solver_processt
7272
class smt_incremental_dry_run_solvert : public smt_base_solver_processt
7373
{
7474
public:
75-
/// \param message_handler:
76-
/// The messaging system to be used for logging purposes.
7775
/// \param out_stream:
7876
/// Reference to the stream to print the SMT formula.
7977
/// \param file_stream:
8078
/// Pointer to the file stream to print the SMT formula into. `nullptr` if
8179
/// output is to `std::cout`.
8280
smt_incremental_dry_run_solvert(
83-
message_handlert &message_handler,
8481
std::ostream &out_stream,
8582
std::unique_ptr<std::ostream> file_stream);
8683

@@ -101,8 +98,6 @@ class smt_incremental_dry_run_solvert : public smt_base_solver_processt
10198
std::unique_ptr<std::ostream> file_stream;
10299
/// The output stream reference to print the SMT formula to.
103100
std::ostream &out_stream;
104-
/// For debug printing.
105-
messaget log;
106101

107102
/// Description of the current solver
108103
const std::string desc = "SMT2 incremental dry-run";

0 commit comments

Comments
 (0)