From b43ac32ce9181c968f6cb7e07584307262840418 Mon Sep 17 00:00:00 2001 From: Alastor Wu Date: Wed, 21 Aug 2019 07:10:26 +0000 Subject: [PATCH] Bug 1571908 - part4 : remove redudant function. r=heycam We have already had a exactly same function, so can remove a redundant one. Differential Revision: https://phabricator.services.mozilla.com/D41132 --HG-- extra : moz-landing-system : lando --- dom/media/webvtt/vtt.jsm | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/dom/media/webvtt/vtt.jsm b/dom/media/webvtt/vtt.jsm index 3cda63b3ee62..ea4762777c9c 100644 --- a/dom/media/webvtt/vtt.jsm +++ b/dom/media/webvtt/vtt.jsm @@ -872,16 +872,6 @@ XPCOMUtils.defineLazyPreferenceGetter(this, "DEBUG_LOG", return false; } - // Check if this box overlaps any other boxes in boxes. - overlapsAny(boxes) { - for (let i = 0; i < boxes.length; i++) { - if (this.overlaps(boxes[i])) { - return true; - } - } - return false; - } - // Check if this box is within another box. within(container) { return (this.top >= container.top - this.fuzz) &&