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
Родитель b875233d85
Коммит 8c0c6ddc30
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -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.