Bug 958643, part 5 - Eliminate XPCJSObjectHolder. r=krizsa

It is now unused.

MozReview-Commit-ID: AzXW6qHdSOW

--HG--
extra : rebase_source : f60697cff778843c36a1e75f3e4f8779bc356d40
This commit is contained in:
Andrew McCreight 2017-09-20 10:26:16 -07:00
Родитель e61cf2cc18
Коммит 75bb849fa3
3 изменённых файлов: 0 добавлений и 36 удалений

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

@ -31,7 +31,6 @@ class XPCWrappedNativeProto;
class XPCWrappedNativeTearOff;
class XPCTraceableVariant;
class XPCJSObjectHolder;
class JSObject2WrappedJSMap;
class Native2WrappedNativeMap;

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

@ -2228,18 +2228,3 @@ static void DEBUG_CheckClassInfoClaims(XPCWrappedNative* wrapper)
}
}
#endif
NS_IMPL_ISUPPORTS(XPCJSObjectHolder, nsIXPConnectJSObjectHolder)
JSObject*
XPCJSObjectHolder::GetJSObject()
{
NS_PRECONDITION(mJSObj, "bad object state");
return mJSObj;
}
XPCJSObjectHolder::XPCJSObjectHolder(JSContext* cx, JSObject* obj)
: mJSObj(cx, obj)
{
MOZ_ASSERT(obj);
}

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

@ -2034,26 +2034,6 @@ private:
nsCOMPtr<nsISupports> mOuter; // only set in root
};
/***************************************************************************/
class XPCJSObjectHolder final : public nsIXPConnectJSObjectHolder
{
public:
// all the interface method declarations...
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCONNECTJSOBJECTHOLDER
// non-interface implementation
public:
XPCJSObjectHolder(JSContext* cx, JSObject* obj);
private:
virtual ~XPCJSObjectHolder() {}
XPCJSObjectHolder() = delete;
JS::PersistentRooted<JSObject*> mJSObj;
};
/***************************************************************************
****************************************************************************