From 8c0c6ddc30e5906003e11664d520a8347a8e75e2 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Fri, 16 Mar 2012 15:45:46 -0700 Subject: [PATCH] Bug 736541: Remove unused variable 'parentId' from nsNavHistory.cpp to fix build warning. r=mak --- toolkit/components/places/nsNavHistory.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/toolkit/components/places/nsNavHistory.cpp b/toolkit/components/places/nsNavHistory.cpp index 396f31ae6306..cd018611ae7b 100644 --- a/toolkit/components/places/nsNavHistory.cpp +++ b/toolkit/components/places/nsNavHistory.cpp @@ -4418,11 +4418,9 @@ nsNavHistory::FilterResultSet(nsNavHistoryQueryResultNode* aQueryNode, nodeIndex > 0 && aSet[nodeIndex]->mURI == aSet[nodeIndex-1]->mURI) continue; - PRInt64 parentId = -1; - if (aSet[nodeIndex]->mItemId != -1) { - if (aQueryNode && aQueryNode->mItemId == aSet[nodeIndex]->mItemId) - continue; - parentId = aSet[nodeIndex]->mFolderId; + if (aSet[nodeIndex]->mItemId != -1 && aQueryNode && + aQueryNode->mItemId == aSet[nodeIndex]->mItemId) { + continue; } // Append the node only if it matches one of the queries.