Bug 736541: Remove unused variable 'parentId' from nsNavHistory.cpp to fix build warning. r=mak

This commit is contained in:
Daniel Holbert 2012-03-16 15:45:46 -07:00
parent b875233d85
commit 8c0c6ddc30

View File

@ -4418,11 +4418,9 @@ nsNavHistory::FilterResultSet(nsNavHistoryQueryResultNode* aQueryNode,
nodeIndex > 0 && aSet[nodeIndex]->mURI == aSet[nodeIndex-1]->mURI) nodeIndex > 0 && aSet[nodeIndex]->mURI == aSet[nodeIndex-1]->mURI)
continue; continue;
PRInt64 parentId = -1; if (aSet[nodeIndex]->mItemId != -1 && aQueryNode &&
if (aSet[nodeIndex]->mItemId != -1) { aQueryNode->mItemId == aSet[nodeIndex]->mItemId) {
if (aQueryNode && aQueryNode->mItemId == aSet[nodeIndex]->mItemId) continue;
continue;
parentId = aSet[nodeIndex]->mFolderId;
} }
// Append the node only if it matches one of the queries. // Append the node only if it matches one of the queries.