Bug 756576 - nsDOMAttributeMap::Init should be removed. r=bsmedberg

This commit is contained in:
Jignesh Kakadiya 2012-05-22 20:21:45 -04:00
parent d4be5d850a
commit d6ece97cda
3 changed files with 0 additions and 15 deletions

View File

@ -27,13 +27,7 @@ nsDOMAttributeMap::nsDOMAttributeMap(Element* aContent)
{
// We don't add a reference to our content. If it goes away,
// we'll be told to drop our reference
}
bool
nsDOMAttributeMap::Init()
{
mAttributeCache.Init();
return true;
}
/**

View File

@ -96,11 +96,6 @@ public:
nsDOMAttributeMap(Element *aContent);
virtual ~nsDOMAttributeMap();
/**
* Initialize the map. Must be called before the map is used.
*/
bool Init();
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
// nsIDOMNamedNodeMap interface

View File

@ -2615,10 +2615,6 @@ nsGenericElement::GetAttributes(nsIDOMNamedNodeMap** aAttributes)
if (!slots->mAttributeMap) {
slots->mAttributeMap = new nsDOMAttributeMap(this);
if (!slots->mAttributeMap->Init()) {
slots->mAttributeMap = nsnull;
return NS_ERROR_FAILURE;
}
}
NS_ADDREF(*aAttributes = slots->mAttributeMap);