Bug 984048 - Promise::MaybeReject ErrorEvent overload no longer needed. Fix compile error. r=bustage

--HG--
extra : amend_source : 5fcbc1c3912503e98f36fce514ddc2433da31a3e
This commit is contained in:
Nikhil Marathe 2014-07-01 17:07:47 -07:00
parent 95f2b45933
commit 1b42d15b04

View File

@ -27,7 +27,6 @@ namespace dom {
class AnyCallback;
class DOMError;
class ErrorEvent;
class PromiseCallback;
class PromiseInit;
class PromiseNativeHandler;
@ -95,10 +94,6 @@ public:
MOZ_ASSERT(NS_FAILED(aArg));
MaybeSomething(aArg, &Promise::MaybeReject);
}
inline void MaybeReject(ErrorEvent* aArg) {
MaybeSomething(aArg, &Promise::MaybeReject);
}
// DO NOT USE MaybeRejectBrokenly with in new code. Promises should be
// rejected with Error instances.
// Note: MaybeRejectBrokenly is a template so we can use it with DOMError