-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated messaget() constructor
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
1 parent
1ed3679
commit fc7b43e
Showing
2 changed files
with
1 addition
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ Author: Daniel Kroening, [email protected] | |
#include <sstream> | ||
#include <string> | ||
|
||
#include "deprecate.h" | ||
#include "invariant.h" | ||
#include "source_location.h" | ||
|
||
|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
||
|
@@ -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) | ||
{ | ||
|
@@ -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; | ||
|