зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1323721 part 6. Remove the now-unused Promise::WrapObject. r=till
This commit is contained in:
Родитель
865e7c42eb
Коммит
d858d9085c
|
@ -91,18 +91,6 @@ Promise::~Promise()
|
|||
mozilla::DropJSObjects(this);
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Promise::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto,
|
||||
JS::MutableHandle<JSObject*> aWrapper)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
binding_detail::AssertReflectorHasGivenProto(aCx, mPromiseObj, aGivenProto);
|
||||
#endif // DEBUG
|
||||
aWrapper.set(mPromiseObj);
|
||||
return true;
|
||||
}
|
||||
|
||||
// static
|
||||
already_AddRefed<Promise>
|
||||
Promise::Create(nsIGlobalObject* aGlobal, ErrorResult& aRv)
|
||||
|
|
|
@ -120,10 +120,6 @@ public:
|
|||
return mGlobal;
|
||||
}
|
||||
|
||||
bool
|
||||
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto,
|
||||
JS::MutableHandle<JSObject*> aWrapper);
|
||||
|
||||
// Do the equivalent of Promise.resolve in the current compartment of aCx.
|
||||
// Errorrs are reported on the ErrorResult; if aRv comes back !Failed(), this
|
||||
// function MUST return a non-null value.
|
||||
|
|
Загрузка…
Ссылка в новой задаче