Remove unnecessary frame parameter. Adjust callers.

This commit is contained in:
Rene Gollent 2012-12-17 20:46:14 -05:00
parent 7fe8b2bf2a
commit c56757fb7c
3 changed files with 4 additions and 5 deletions

View File

@ -338,7 +338,7 @@ DebugReportGenerator::_DumpDebuggedThreadInfo(BString& _output,
containerLocker.Unlock();
_ResolveValueIfNeeded(child->Node(), frame, 1);
containerLocker.Lock();
UiUtils::PrintValueNodeGraph(_output, frame, child, 3, 1);
UiUtils::PrintValueNodeGraph(_output, child, 3, 1);
}
_output << "\n";
}

View File

@ -163,8 +163,8 @@ UiUtils::ReportNameForTeam(::Team* team, char* buffer, size_t bufferSize)
/*static*/ void
UiUtils::PrintValueNodeGraph(BString& _output, StackFrame* frame,
ValueNodeChild* child, int32 indentLevel, int32 maxDepth)
UiUtils::PrintValueNodeGraph(BString& _output, ValueNodeChild* child,
int32 indentLevel, int32 maxDepth)
{
_output.Append('\t', indentLevel);
_output << child->Name();
@ -215,7 +215,7 @@ UiUtils::PrintValueNodeGraph(BString& _output, StackFrame* frame,
// level node contains no data of intereest.
if (node->ChildAt(i)->GetType()->Kind() != TYPE_COMPOUND
|| maxDepth > 1) {
PrintValueNodeGraph(_output, frame, node->ChildAt(i),
PrintValueNodeGraph(_output, node->ChildAt(i),
indentLevel + 1, maxDepth - 1);
}
}

View File

@ -34,7 +34,6 @@ public:
// this function assumes the value nodes have already been resolved
// (if possible).
static void PrintValueNodeGraph(BString& _output,
StackFrame* frame,
ValueNodeChild* child,
int32 indentLevel, int32 maxDepth);
};