summaryrefslogtreecommitdiffstats
path: root/dom/promise
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-12-19 03:05:45 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-12-19 03:05:45 +0100
commitd461262405813f0721f9dbb2ff57b9f82e5f9b65 (patch)
treea9c5fce75bb1a120925c27b1de4461403213794d /dom/promise
parentcdea310f1796c1ea5ffa5b49a06fcda914ea9ecb (diff)
downloadUXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.tar
UXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.tar.gz
UXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.tar.lz
UXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.tar.xz
UXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.zip
Issue #1322 - Part 3: Remove DOM promise interface gunk
Based on work by Boris Zbarsky
Diffstat (limited to 'dom/promise')
-rw-r--r--dom/promise/Promise.cpp11
-rw-r--r--dom/promise/Promise.h4
2 files changed, 0 insertions, 15 deletions
diff --git a/dom/promise/Promise.cpp b/dom/promise/Promise.cpp
index 429b68529..e5279345d 100644
--- a/dom/promise/Promise.cpp
+++ b/dom/promise/Promise.cpp
@@ -87,17 +87,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)
diff --git a/dom/promise/Promise.h b/dom/promise/Promise.h
index 77914079a..2fe365c46 100644
--- a/dom/promise/Promise.h
+++ b/dom/promise/Promise.h
@@ -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 compartment of aGlobal. The
// compartment of aCx is ignored. Errors are reported on the ErrorResult; if
// aRv comes back !Failed(), this function MUST return a non-null value.