@@ -16,20 +16,14 @@ Author: Daniel Kroening
16
16
#include < memory>
17
17
18
18
#include < util/invariant.h>
19
- #include < util/message.h>
20
19
#include < util/symbol.h>
21
20
22
21
#include < goto-programs/goto_model.h>
23
22
24
23
// / Base class for filtering functions
25
- class function_filter_baset : public messaget
24
+ class function_filter_baset
26
25
{
27
26
public:
28
- explicit function_filter_baset (message_handlert &message_handler)
29
- : messaget(message_handler)
30
- {
31
- }
32
-
33
27
virtual ~function_filter_baset ()
34
28
{
35
29
}
@@ -48,14 +42,9 @@ class function_filter_baset : public messaget
48
42
};
49
43
50
44
// / Base class for filtering goals
51
- class goal_filter_baset : public messaget
45
+ class goal_filter_baset
52
46
{
53
47
public:
54
- explicit goal_filter_baset (message_handlert &message_handler)
55
- : messaget(message_handler)
56
- {
57
- }
58
-
59
48
virtual ~goal_filter_baset ()
60
49
{
61
50
}
@@ -146,11 +135,6 @@ class goal_filterst
146
135
class internal_functions_filtert : public function_filter_baset
147
136
{
148
137
public:
149
- explicit internal_functions_filtert (message_handlert &message_handler)
150
- : function_filter_baset(message_handler)
151
- {
152
- }
153
-
154
138
bool operator ()(
155
139
const symbolt &identifier,
156
140
const goto_functionst::goto_functiont &goto_function) const override ;
@@ -159,10 +143,7 @@ class internal_functions_filtert : public function_filter_baset
159
143
class file_filtert : public function_filter_baset
160
144
{
161
145
public:
162
- explicit file_filtert (
163
- message_handlert &message_handler,
164
- const irep_idt &file_id)
165
- : function_filter_baset(message_handler), file_id(file_id)
146
+ explicit file_filtert (const irep_idt &file_id) : file_id(file_id)
166
147
{
167
148
}
168
149
@@ -177,10 +158,8 @@ class file_filtert : public function_filter_baset
177
158
class single_function_filtert : public function_filter_baset
178
159
{
179
160
public:
180
- explicit single_function_filtert (
181
- message_handlert &message_handler,
182
- const irep_idt &function_id)
183
- : function_filter_baset(message_handler), function_id(function_id)
161
+ explicit single_function_filtert (const irep_idt &function_id)
162
+ : function_id(function_id)
184
163
{
185
164
}
186
165
@@ -196,11 +175,8 @@ class single_function_filtert : public function_filter_baset
196
175
class include_pattern_filtert : public function_filter_baset
197
176
{
198
177
public:
199
- explicit include_pattern_filtert (
200
- message_handlert &message_handler,
201
- const std::string &cover_include_pattern)
202
- : function_filter_baset(message_handler),
203
- regex_matcher(cover_include_pattern)
178
+ explicit include_pattern_filtert (const std::string &cover_include_pattern)
179
+ : regex_matcher(cover_include_pattern)
204
180
{
205
181
}
206
182
@@ -216,11 +192,6 @@ class include_pattern_filtert : public function_filter_baset
216
192
class trivial_functions_filtert : public function_filter_baset
217
193
{
218
194
public:
219
- explicit trivial_functions_filtert (message_handlert &message_handler)
220
- : function_filter_baset(message_handler)
221
- {
222
- }
223
-
224
195
bool operator ()(
225
196
const symbolt &identifier,
226
197
const goto_functionst::goto_functiont &goto_function) const override ;
@@ -230,11 +201,6 @@ class trivial_functions_filtert : public function_filter_baset
230
201
class internal_goals_filtert : public goal_filter_baset
231
202
{
232
203
public:
233
- explicit internal_goals_filtert (message_handlert &message_handler)
234
- : goal_filter_baset(message_handler)
235
- {
236
- }
237
-
238
204
bool operator ()(const source_locationt &) const override ;
239
205
};
240
206
0 commit comments