Bug 346744: Get rid of implementations of nsIContent::AppendChildTo and let it just forward to nsIContent::InsertChildAt. r/sr=bz

This commit is contained in:
cvshook@sicking.cc
2006-07-31 22:38:07 +00:00
parent 255ff4ea4d
commit 532ab16664
17 changed files with 4 additions and 156 deletions

View File

@@ -2435,17 +2435,6 @@ nsGenericElement::doInsertChildAt(nsIContent* aKid, PRUint32 aIndex,
return NS_OK;
}
nsresult
nsGenericElement::AppendChildTo(nsIContent* aKid, PRBool aNotify)
{
// Make sure to _not_ call the subclass InsertChildAt here. If
// subclasses wanted to hook into this stuff, they would have
// overridden AppendChildTo.
// XXXbz maybe this should just be a non-virtual method on nsINode?
// Feels that way to me...
return nsGenericElement::InsertChildAt(aKid, GetChildCount(), aNotify);
}
nsresult
nsGenericElement::RemoveChildAt(PRUint32 aIndex, PRBool aNotify)
{