Bug 1131887 part 2. Remove the now-unused nsIXPConnect.reparentWrappedNativeIfFound. r=peterv

This commit is contained in:
Boris Zbarsky 2015-02-13 14:34:53 -05:00
parent 6decbb1e93
commit c7de70479f
2 changed files with 1 additions and 29 deletions

View File

@ -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

View File

@ -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)