summaryrefslogtreecommitdiffstats
path: root/dom/abort/AbortSignal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/abort/AbortSignal.cpp')
-rw-r--r--dom/abort/AbortSignal.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/dom/abort/AbortSignal.cpp b/dom/abort/AbortSignal.cpp
index 38b0a2492..20f36d2ab 100644
--- a/dom/abort/AbortSignal.cpp
+++ b/dom/abort/AbortSignal.cpp
@@ -68,8 +68,6 @@ AbortSignal::Abort()
init.mBubbles = false;
init.mCancelable = false;
- // TODO which kind of event should we dispatch here?
-
RefPtr<Event> event =
Event::Constructor(this, NS_LITERAL_STRING("abort"), init);
event->SetTrusted(true);
@@ -94,27 +92,6 @@ AbortSignal::RemoveFollower(AbortSignal::Follower* aFollower)
mFollowers.RemoveElement(aFollower);
}
-bool
-AbortSignal::CanAcceptFollower(AbortSignal::Follower* aFollower) const
-{
- MOZ_DIAGNOSTIC_ASSERT(aFollower);
-
- if (!mController) {
- return true;
- }
-
- if (aFollower == mController) {
- return false;
- }
-
- AbortSignal* following = mController->Following();
- if (!following) {
- return true;
- }
-
- return following->CanAcceptFollower(aFollower);
-}
-
// AbortSignal::Follower
// ----------------------------------------------------------------------------
@@ -128,10 +105,6 @@ AbortSignal::Follower::Follow(AbortSignal* aSignal)
{
MOZ_DIAGNOSTIC_ASSERT(aSignal);
- if (!aSignal->CanAcceptFollower(this)) {
- return;
- }
-
Unfollow();
mFollowingSignal = aSignal;