Skip to content

Commit 6cad8ca

Browse files
authored
Merge pull request #8201 from tautschnig/cleanup/has_function_call
Remove unused goto_convertt::has_function_call
2 parents d750d01 + 5f53ea3 commit 6cad8ca

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/goto-programs/goto_convert_class.h

-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ class goto_convertt:public messaget
107107

108108
void rewrite_boolean(exprt &dest);
109109

110-
static bool has_function_call(const exprt &expr);
111-
112110
void remove_side_effect(
113111
side_effect_exprt &expr,
114112
goto_programt &dest,

src/goto-programs/goto_convert_side_effect.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,6 @@ Author: Daniel Kroening, [email protected]
2222

2323
#include <ansi-c/c_expr.h>
2424

25-
bool goto_convertt::has_function_call(const exprt &expr)
26-
{
27-
for(const auto &op : expr.operands())
28-
{
29-
if(has_function_call(op))
30-
return true;
31-
}
32-
33-
if(expr.id()==ID_side_effect &&
34-
expr.get(ID_statement)==ID_function_call)
35-
return true;
36-
37-
return false;
38-
}
39-
4025
void goto_convertt::remove_assignment(
4126
side_effect_exprt &expr,
4227
goto_programt &dest,

0 commit comments

Comments
 (0)