зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e61cf2cc18
Коммит
75bb849fa3
|
@ -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;
|
||||
};
|
||||
|
||||
/***************************************************************************
|
||||
****************************************************************************
|
||||
|
|
Загрузка…
Ссылка в новой задаче