mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1131887 part 2. Remove the now-unused nsIXPConnect.reparentWrappedNativeIfFound. r=peterv
This commit is contained in:
parent
6decbb1e93
commit
c7de70479f
@ -267,7 +267,7 @@ interface nsIXPCFunctionThisTranslator : nsISupports
|
||||
{ 0xbd, 0xd6, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }
|
||||
%}
|
||||
|
||||
[noscript, uuid(f0966cb3-9171-4dc6-a446-37ea16611fb0)]
|
||||
[noscript, uuid(75975244-2cf0-43b1-b79a-9fd447fac06b)]
|
||||
interface nsIXPConnect : nsISupports
|
||||
{
|
||||
%{ C++
|
||||
@ -466,11 +466,6 @@ interface nsIXPConnect : nsISupports
|
||||
in nsIXPCFunctionThisTranslator aTranslator);
|
||||
|
||||
void
|
||||
reparentWrappedNativeIfFound(in JSContextPtr aJSContext,
|
||||
in JSObjectPtr aScope,
|
||||
in JSObjectPtr aNewParent,
|
||||
in nsISupports aCOMObj);
|
||||
void
|
||||
rescueOrphansInScope(in JSContextPtr aJSContext, in JSObjectPtr aScope);
|
||||
|
||||
nsIXPConnectJSObjectHolder
|
||||
|
@ -690,29 +690,6 @@ nsXPConnect::GetWrappedNativeOfNativeObject(JSContext * aJSContext,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void reparentWrappedNativeIfFound (in JSContextPtr aJSContext,
|
||||
* in JSObjectPtr aScope,
|
||||
* in JSObjectPtr aNewParent,
|
||||
* in nsISupports aCOMObj); */
|
||||
NS_IMETHODIMP
|
||||
nsXPConnect::ReparentWrappedNativeIfFound(JSContext * aJSContext,
|
||||
JSObject * aScopeArg,
|
||||
JSObject * aNewParentArg,
|
||||
nsISupports *aCOMObj)
|
||||
{
|
||||
RootedObject aScope(aJSContext, aScopeArg);
|
||||
RootedObject aNewParent(aJSContext, aNewParentArg);
|
||||
|
||||
XPCWrappedNativeScope* scope = ObjectScope(aScope);
|
||||
XPCWrappedNativeScope* scope2 = ObjectScope(aNewParent);
|
||||
if (!scope || !scope2)
|
||||
return UnexpectedFailure(NS_ERROR_FAILURE);
|
||||
|
||||
RootedObject newParent(aJSContext, aNewParent);
|
||||
return XPCWrappedNative::
|
||||
ReparentWrapperIfFound(scope, scope2, newParent, aCOMObj);
|
||||
}
|
||||
|
||||
static PLDHashOperator
|
||||
MoveableWrapperFinder(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
||||
uint32_t number, void *arg)
|
||||
|
Loading…
Reference in New Issue
Block a user