Skip to content

Commit 78908e2

Browse files
committed
Remove unused function_depth variable
Compact goto traces never print depth information (unlike full trace output): `function_depth` was initialised and being written to, but never read. This was always the case (the code was added in b62ffe9), it's not a matter of printing having been removed.
1 parent b5bf362 commit 78908e2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/goto-programs/goto_trace.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,8 @@ void show_compact_goto_trace(
397397
const goto_tracet &goto_trace,
398398
const trace_optionst &options)
399399
{
400-
std::size_t function_depth = 0;
401-
402400
for(const auto &step : goto_trace.steps)
403401
{
404-
if(step.is_function_call())
405-
function_depth++;
406-
else if(step.is_function_return())
407-
function_depth--;
408-
409402
// hide the hidden ones
410403
if(step.hidden)
411404
continue;

0 commit comments

Comments
 (0)