From a3cc5764c1069979087b0330051f750989863ccf Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Wed, 24 Aug 2016 17:17:25 +1200 Subject: [PATCH] Bug 1297580: P1. Remove broken optimisation in IntervalSet. r=gerald Interval.LeftOf would always return true if the length of the interval is less than the fuzzing value. MozReview-Commit-ID: L9uyZjQXnGA --HG-- extra : rebase_source : af14038da603b928c7a4942f1b37f031908e61bb --- dom/media/Intervals.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dom/media/Intervals.h b/dom/media/Intervals.h index 4e0cbf161ff7..f2c74aaa0433 100644 --- a/dom/media/Intervals.h +++ b/dom/media/Intervals.h @@ -574,10 +574,6 @@ public: bool Contains(const ElemType& aInterval) const { for (const auto& interval : mIntervals) { - if (aInterval.LeftOf(interval)) { - // Will never succeed. - return false; - } if (interval.Contains(aInterval)) { return true; }