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(); containerLocker.Unlock();
_ResolveValueIfNeeded(child->Node(), frame, 1); _ResolveValueIfNeeded(child->Node(), frame, 1);
containerLocker.Lock(); containerLocker.Lock();
UiUtils::PrintValueNodeGraph(_output, frame, child, 3, 1); UiUtils::PrintValueNodeGraph(_output, child, 3, 1);
} }
_output << "\n"; _output << "\n";
} }

View File

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

View File

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