Skip to content

Commit b5986a7

Browse files
Make pop_frame static
This function is only used within the same cpp file. Making it static simplifies the global interface and is potentially more efficient.
1 parent dcb6b94 commit b5986a7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/goto-symex/goto_symex.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ class goto_symext
276276
virtual void loop_bound_exceeded(statet &, const exprt &guard);
277277

278278
// function calls
279-
280-
void pop_frame(statet &);
281279
void return_assignment(statet &);
282280

283281
virtual void no_body(const irep_idt &)

src/goto-symex/symex_function_call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void goto_symext::symex_function_call_code(
327327
}
328328

329329
/// pop one call frame
330-
void goto_symext::pop_frame(statet &state)
330+
static void pop_frame(goto_symext::statet &state)
331331
{
332332
PRECONDITION(!state.call_stack().empty());
333333

0 commit comments

Comments
 (0)