bug 1155829 - remove MaiHyperlink::Initialize r=surkov

This commit is contained in:
Trevor Saunders 2015-04-07 15:39:39 -04:00
parent c4065db6bc
commit dbeb87f5d4
2 changed files with 1 additions and 20 deletions

View File

@ -121,28 +121,11 @@ MaiHyperlink::GetAtkHyperlink(void)
NS_ASSERTION(mMaiAtkHyperlink, "OUT OF MEMORY");
NS_ENSURE_TRUE(mMaiAtkHyperlink, nullptr);
/* be sure to initialize it with "this" */
MaiHyperlink::Initialize(mMaiAtkHyperlink, this);
MAI_ATK_HYPERLINK(mMaiAtkHyperlink)->maiHyperlink = this;
return mMaiAtkHyperlink;
}
/* static */
/* remember to call this static function when a MaiAtkHyperlink
* is created
*/
nsresult
MaiHyperlink::Initialize(AtkHyperlink *aObj, MaiHyperlink *aHyperlink)
{
NS_ENSURE_ARG(MAI_IS_ATK_HYPERLINK(aObj));
NS_ENSURE_ARG(aHyperlink);
/* initialize hyperlink */
MAI_ATK_HYPERLINK(aObj)->maiHyperlink = aHyperlink;
return NS_OK;
}
/* static functions for ATK callbacks */

View File

@ -34,8 +34,6 @@ public:
protected:
Accessible* mHyperlink;
AtkHyperlink* mMaiAtkHyperlink;
public:
static nsresult Initialize(AtkHyperlink *aObj, MaiHyperlink *aClass);
};
} // namespace a11y