Skip to content

Commit

Permalink
Remove deprecated messaget() constructor
Browse files Browse the repository at this point in the history
It is now no longer possible to construct a messaget object that is not
fully configured, i.e., lacks a message handler.
  • Loading branch information
tautschnig committed Dec 20, 2023
1 parent 1ed3679 commit fc7b43e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
8 changes: 0 additions & 8 deletions src/util/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Author: Daniel Kroening, [email protected]
#include <sstream>
#include <string>

#include "deprecate.h"
#include "invariant.h"
#include "source_location.h"

Expand Down Expand Up @@ -191,13 +190,6 @@ class messaget

// constructors, destructor

DEPRECATED(SINCE(2019, 1, 7, "use messaget(message_handler) instead"))
messaget():
message_handler(nullptr),
mstream(M_DEBUG, *this)
{
}

messaget(const messaget &other):
message_handler(other.message_handler),
mstream(other.mstream, *this)
Expand Down
8 changes: 1 addition & 7 deletions src/util/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Author: Daniel Kroening, [email protected]
#ifndef CPROVER_UTIL_PARSER_H
#define CPROVER_UTIL_PARSER_H

#include "deprecate.h"
#include "expr.h"
#include "message.h"

Expand Down Expand Up @@ -40,8 +39,6 @@ class parsert
last_line.clear();
}

DEPRECATED(SINCE(2023, 12, 20, "use parsert(message_handler) instead"))
parsert():in(nullptr) { clear(); }
explicit parsert(message_handlert &message_handler)
: in(nullptr), log(message_handler)
{
Expand Down Expand Up @@ -138,11 +135,8 @@ class parsert
column+=token_width;
}

// should be protected or even just be a reference to a message handler, but
// for now enables a step-by-step transition
messaget log;

protected:
messaget log;
source_locationt source_location;
unsigned line_no, previous_line_no;
unsigned column;
Expand Down

0 comments on commit fc7b43e

Please sign in to comment.