From 10878a064091254e2e04afc17f351bc70a847519 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Thu, 6 Mar 2003 21:01:52 +0000 Subject: [PATCH] Remove unused variable (fix warning). b=171830 --- content/base/src/nsRuleNode.cpp | 3 --- layout/style/nsRuleNode.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/content/base/src/nsRuleNode.cpp b/content/base/src/nsRuleNode.cpp index 279d1d685f98..3acfea74407d 100644 --- a/content/base/src/nsRuleNode.cpp +++ b/content/base/src/nsRuleNode.cpp @@ -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; diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp index 279d1d685f98..3acfea74407d 100644 --- a/layout/style/nsRuleNode.cpp +++ b/layout/style/nsRuleNode.cpp @@ -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;