Removed an nsIAtom* that was never initialized or used, but NS_RELEASED. Found in the build warnings. r=jag.

This commit is contained in:
sfraser%netscape.com 2000-09-08 01:25:10 +00:00
parent 61de6a40df
commit 7e6c98de52
2 changed files with 0 additions and 4 deletions

View File

@ -696,7 +696,6 @@ nsXULAttributes::GetNamedItem(const nsAReadableString& aName,
// XXX nameSpaceID only used in dead code (that was giving us a warning).
// XXX I'd remove it completely, but maybe it is a useful reminder???
// PRInt32 nameSpaceID;
nsIAtom* name;
nsCOMPtr<nsINodeInfo> inpNodeInfo;
if (NS_FAILED(rv = mContent->NormalizeAttributeString(aName, *getter_AddRefs(inpNodeInfo))))
@ -720,7 +719,6 @@ nsXULAttributes::GetNamedItem(const nsAReadableString& aName,
}
}
NS_RELEASE(name);
return NS_OK;
}

View File

@ -696,7 +696,6 @@ nsXULAttributes::GetNamedItem(const nsAReadableString& aName,
// XXX nameSpaceID only used in dead code (that was giving us a warning).
// XXX I'd remove it completely, but maybe it is a useful reminder???
// PRInt32 nameSpaceID;
nsIAtom* name;
nsCOMPtr<nsINodeInfo> inpNodeInfo;
if (NS_FAILED(rv = mContent->NormalizeAttributeString(aName, *getter_AddRefs(inpNodeInfo))))
@ -720,7 +719,6 @@ nsXULAttributes::GetNamedItem(const nsAReadableString& aName,
}
}
NS_RELEASE(name);
return NS_OK;
}