From d858d9085c5cc1d67915319c6ae376889a26568e Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 19 Dec 2016 15:38:43 -0800 Subject: [PATCH] Bug 1323721 part 6. Remove the now-unused Promise::WrapObject. r=till --- dom/promise/Promise.cpp | 12 ------------ dom/promise/Promise.h | 4 ---- 2 files changed, 16 deletions(-) diff --git a/dom/promise/Promise.cpp b/dom/promise/Promise.cpp index 1c75d911d808..25a5782a6ae8 100644 --- a/dom/promise/Promise.cpp +++ b/dom/promise/Promise.cpp @@ -91,18 +91,6 @@ Promise::~Promise() mozilla::DropJSObjects(this); } - -bool -Promise::WrapObject(JSContext* aCx, JS::Handle aGivenProto, - JS::MutableHandle aWrapper) -{ -#ifdef DEBUG - binding_detail::AssertReflectorHasGivenProto(aCx, mPromiseObj, aGivenProto); -#endif // DEBUG - aWrapper.set(mPromiseObj); - return true; -} - // static already_AddRefed Promise::Create(nsIGlobalObject* aGlobal, ErrorResult& aRv) diff --git a/dom/promise/Promise.h b/dom/promise/Promise.h index 675469e96f56..71624d53644f 100644 --- a/dom/promise/Promise.h +++ b/dom/promise/Promise.h @@ -120,10 +120,6 @@ public: return mGlobal; } - bool - WrapObject(JSContext* aCx, JS::Handle aGivenProto, - JS::MutableHandle 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.