Skip to content

show_goto_stack_trace: remove unused parameter and make static [blocks: #2310] #3341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/goto-programs/goto_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,10 @@ void show_full_goto_trace(
}
}

void show_goto_stack_trace(
static void show_goto_stack_trace(
messaget::mstreamt &out,
const namespacet &ns,
const goto_tracet &goto_trace,
const trace_optionst &options)
const goto_tracet &goto_trace)
{
// map from thread number to a call stack
std::map<unsigned, std::vector<goto_tracet::stepst::const_iterator>>
Expand Down Expand Up @@ -622,7 +621,7 @@ void show_goto_trace(
const trace_optionst &options)
{
if(options.stack_trace)
show_goto_stack_trace(out, ns, goto_trace, options);
show_goto_stack_trace(out, ns, goto_trace);
else
show_full_goto_trace(out, ns, goto_trace, options);
}
Expand Down