Remove unused variable (fix warning). b=171830

This commit is contained in:
dbaron%dbaron.org 2003-03-06 21:01:52 +00:00
Родитель 2c149384ef
Коммит 10878a0640
2 изменённых файлов: 0 добавлений и 6 удалений

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

@ -487,7 +487,6 @@ nsRuleNode::Transition(nsIStyleRule* aRule, nsRuleNode** aResult)
ConvertChildrenToHash();
}
PRBool createdNode = PR_FALSE;
if (ChildrenAreHashed()) {
ChildrenHashEntry *entry = NS_STATIC_CAST(ChildrenHashEntry*,
PL_DHashTableOperate(ChildrenHash(), aRule, PL_DHASH_ADD));
@ -501,7 +500,6 @@ nsRuleNode::Transition(nsIStyleRule* aRule, nsRuleNode** aResult)
*aResult = nsnull;
return NS_ERROR_OUT_OF_MEMORY;
}
createdNode = PR_TRUE;
}
} else if (!next) {
// Create the new entry in our list.
@ -511,7 +509,6 @@ nsRuleNode::Transition(nsIStyleRule* aRule, nsRuleNode** aResult)
return NS_ERROR_OUT_OF_MEMORY;
}
SetChildrenList(new (mPresContext) nsRuleList(next, ChildrenList()));
createdNode = PR_TRUE;
}
*aResult = next;

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

@ -487,7 +487,6 @@ nsRuleNode::Transition(nsIStyleRule* aRule, nsRuleNode** aResult)
ConvertChildrenToHash();
}
PRBool createdNode = PR_FALSE;
if (ChildrenAreHashed()) {
ChildrenHashEntry *entry = NS_STATIC_CAST(ChildrenHashEntry*,
PL_DHashTableOperate(ChildrenHash(), aRule, PL_DHASH_ADD));
@ -501,7 +500,6 @@ nsRuleNode::Transition(nsIStyleRule* aRule, nsRuleNode** aResult)
*aResult = nsnull;
return NS_ERROR_OUT_OF_MEMORY;
}
createdNode = PR_TRUE;
}
} else if (!next) {
// Create the new entry in our list.
@ -511,7 +509,6 @@ nsRuleNode::Transition(nsIStyleRule* aRule, nsRuleNode** aResult)
return NS_ERROR_OUT_OF_MEMORY;
}
SetChildrenList(new (mPresContext) nsRuleList(next, ChildrenList()));
createdNode = PR_TRUE;
}
*aResult = next;