Bug 331547: Get rid of nsGenericElement::WillAddOrRemove
This commit is contained in:
@@ -2285,9 +2285,6 @@ nsGenericElement::InsertChildAt(nsIContent* aKid,
|
||||
{
|
||||
NS_PRECONDITION(aKid, "null ptr");
|
||||
|
||||
nsresult rv = WillAddOrRemoveChild(aKid, aIndex, PR_FALSE);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
return doInsertChildAt(aKid, aIndex, aNotify, this, GetCurrentDoc(),
|
||||
mAttrsAndChildren);
|
||||
}
|
||||
@@ -2376,9 +2373,6 @@ nsGenericElement::RemoveChildAt(PRUint32 aIndex, PRBool aNotify)
|
||||
{
|
||||
nsCOMPtr<nsIContent> oldKid = GetChildAt(aIndex);
|
||||
if (oldKid) {
|
||||
nsresult rv = WillAddOrRemoveChild(oldKid, aIndex, PR_TRUE);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
return doRemoveChildAt(aIndex, aNotify, oldKid, this, GetCurrentDoc(),
|
||||
mAttrsAndChildren);
|
||||
}
|
||||
@@ -3237,14 +3231,6 @@ nsGenericElement::InternalGetExistingAttrNameFromQName(const nsAString& aStr) co
|
||||
NS_ConvertUTF16toUTF8(aStr));
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGenericElement::WillAddOrRemoveChild(nsIContent* /*aKid*/,
|
||||
PRUint32 /*aIndex*/,
|
||||
PRBool /*aRemove*/)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGenericElement::CopyInnerTo(nsGenericElement* aDst, PRBool aDeep) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user