Bug 1480245, part 3 - Remove always-true nsXPTInterfaceInfo::EnsureResolved(). r=nika

Differential Revision: https://phabricator.services.mozilla.com/D9645

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Adrian Wielgosik 2018-10-24 17:39:47 +00:00
parent d0b8c2be2e
commit 3aae9fcc99
2 changed files with 2 additions and 3 deletions

View File

@ -43,8 +43,9 @@ NS_GetXPTCallStub(REFNSIID aIID, nsIXPTCProxy* aOuter,
return NS_ERROR_INVALID_ARG;
const nsXPTInterfaceInfo* iie = nsXPTInterfaceInfo::ByIID(aIID);
if (!iie || !iie->EnsureResolved() || iie->IsBuiltinClass())
if (!iie || iie->IsBuiltinClass()) {
return NS_ERROR_FAILURE;
}
*aResult = new nsXPTCStubBase(aOuter, iie);
return NS_OK;

View File

@ -106,8 +106,6 @@ struct nsXPTInterfaceInfo
JS::MutableHandleValue constant,
char** aName) const;
bool EnsureResolved() const { return true; } // XXX: Remove (bug 1480245)
////////////////////////////////////////////////////////////////
// Ensure these fields are in the same order as xptcodegen.py //
////////////////////////////////////////////////////////////////