Bug 1431964 part 7. Remove unused nsIDOMMozNamedAttrMap methods. r=mccr8

MozReview-Commit-ID: H8gyGnbqYtf
This commit is contained in:
Boris Zbarsky 2018-01-20 18:51:35 -05:00
Родитель 0ba39c7972
Коммит 98002367cb
2 изменённых файлов: 0 добавлений и 55 удалений

Просмотреть файл

@ -198,28 +198,6 @@ nsDOMAttributeMap::GetNamedItem(const nsAString& aAttrName)
return NamedGetter(aAttrName, dummy);
}
NS_IMETHODIMP
nsDOMAttributeMap::SetNamedItem(nsIDOMAttr* aAttr, nsIDOMAttr** aReturn)
{
Attr* attribute = static_cast<Attr*>(aAttr);
NS_ENSURE_ARG(attribute);
ErrorResult rv;
*aReturn = SetNamedItemNS(*attribute, rv).take();
return rv.StealNSResult();
}
NS_IMETHODIMP
nsDOMAttributeMap::SetNamedItemNS(nsIDOMAttr* aAttr, nsIDOMAttr** aReturn)
{
Attr* attribute = static_cast<Attr*>(aAttr);
NS_ENSURE_ARG(attribute);
ErrorResult rv;
*aReturn = SetNamedItemNS(*attribute, rv).take();
return rv.StealNSResult();
}
already_AddRefed<Attr>
nsDOMAttributeMap::SetNamedItemNS(Attr& aAttr, ErrorResult& aError)
{
@ -321,17 +299,6 @@ nsDOMAttributeMap::RemoveNamedItem(NodeInfo* aNodeInfo, ErrorResult& aError)
return attribute.forget();
}
NS_IMETHODIMP
nsDOMAttributeMap::RemoveNamedItem(const nsAString& aName,
nsIDOMAttr** aReturn)
{
NS_ENSURE_ARG_POINTER(aReturn);
ErrorResult rv;
*aReturn = RemoveNamedItem(aName, rv).take();
return rv.StealNSResult();
}
already_AddRefed<Attr>
nsDOMAttributeMap::RemoveNamedItem(const nsAString& aName, ErrorResult& aError)
{
@ -436,17 +403,6 @@ nsDOMAttributeMap::GetAttrNodeInfo(const nsAString& aNamespaceURI,
return nullptr;
}
NS_IMETHODIMP
nsDOMAttributeMap::RemoveNamedItemNS(const nsAString& aNamespaceURI,
const nsAString& aLocalName,
nsIDOMAttr** aReturn)
{
NS_ENSURE_ARG_POINTER(aReturn);
ErrorResult rv;
*aReturn = RemoveNamedItemNS(aNamespaceURI, aLocalName, rv).take();
return rv.StealNSResult();
}
already_AddRefed<Attr>
nsDOMAttributeMap::RemoveNamedItemNS(const nsAString& aNamespaceURI,
const nsAString& aLocalName,

Просмотреть файл

@ -13,15 +13,4 @@
[uuid(cb5564cd-26ec-418f-a6d6-1d57cd2c971c)]
interface nsIDOMMozNamedAttrMap : nsISupports
{
nsIDOMAttr setNamedItem(in nsIDOMAttr arg)
raises(DOMException);
nsIDOMAttr removeNamedItem(in DOMString name)
raises(DOMException);
// Introduced in DOM Level 2:
nsIDOMAttr setNamedItemNS(in nsIDOMAttr arg)
raises(DOMException);
// Introduced in DOM Level 2:
nsIDOMAttr removeNamedItemNS(in DOMString namespaceURI,
in DOMString localName)
raises(DOMException);
};