@@ -229,26 +229,6 @@ class goto_programt
229
229
return to_code_assign (code).rhs ();
230
230
}
231
231
232
- // / Set the assignment for ASSIGN
233
- DEPRECATED (SINCE(2021 , 2 , 24 , " Use assign_lhs/rhs instead" ))
234
- void set_assign (code_assignt c)
235
- {
236
- PRECONDITION (is_assign ());
237
- code = std::move (c);
238
- }
239
-
240
- // / Get the declaration for DECL
241
- DEPRECATED (SINCE(2021 , 2 , 24 , " Use decl_symbol instead" ))
242
- const code_declt &get_decl () const
243
- {
244
- PRECONDITION (is_decl ());
245
- const auto &decl = expr_checked_cast<code_declt>(code);
246
- INVARIANT (
247
- !decl.initial_value (),
248
- " code_declt in goto program may not contain initialization." );
249
- return decl;
250
- }
251
-
252
232
// / Get the declared symbol for DECL
253
233
const symbol_exprt &decl_symbol () const
254
234
{
@@ -271,26 +251,6 @@ class goto_programt
271
251
return decl.symbol ();
272
252
}
273
253
274
- // / Set the declaration for DECL
275
- DEPRECATED (SINCE(2021 , 2 , 24 , " Use decl_symbol instead" ))
276
- void set_decl (code_declt c)
277
- {
278
- PRECONDITION (is_decl ());
279
- INVARIANT (
280
- !c.initial_value (),
281
- " Initialization must be separated from code_declt before adding to "
282
- " goto_instructiont." );
283
- code = std::move (c);
284
- }
285
-
286
- // / Get the dead statement for DEAD
287
- DEPRECATED (SINCE(2021 , 2 , 24 , " Use dead_symbol instead" ))
288
- const code_deadt &get_dead () const
289
- {
290
- PRECONDITION (is_dead ());
291
- return to_code_dead (code);
292
- }
293
-
294
254
// / Get the symbol for DEAD
295
255
const symbol_exprt &dead_symbol () const
296
256
{
@@ -305,22 +265,6 @@ class goto_programt
305
265
return to_code_dead (code).symbol ();
306
266
}
307
267
308
- // / Set the dead statement for DEAD
309
- DEPRECATED (SINCE(2021 , 2 , 24 , " Use dead_symbol instead" ))
310
- void set_dead (code_deadt c)
311
- {
312
- PRECONDITION (is_dead ());
313
- code = std::move (c);
314
- }
315
-
316
- // / Get the return statement for READ
317
- DEPRECATED (SINCE(2021 , 2 , 24 , " Use return_value instead" ))
318
- const code_returnt &get_return () const
319
- {
320
- PRECONDITION (is_set_return_value ());
321
- return to_code_return (code);
322
- }
323
-
324
268
// / Get the return value of a SET_RETURN_VALUE instruction
325
269
const exprt &return_value () const
326
270
{
@@ -335,14 +279,6 @@ class goto_programt
335
279
return to_code_return (code).return_value ();
336
280
}
337
281
338
- // / Set the return statement for SET_RETURN_VALUE
339
- DEPRECATED (SINCE(2021 , 2 , 24 , " Use return_value instead" ))
340
- void set_return (code_returnt c)
341
- {
342
- PRECONDITION (is_set_return_value ());
343
- code = std::move (c);
344
- }
345
-
346
282
// / Get the function call for FUNCTION_CALL
347
283
#if 1
348
284
DEPRECATED (SINCE(
0 commit comments