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
This commit is contained in:
Alastor Wu 2019-08-21 07:10:26 +00:00
parent 139cf6cc13
commit b43ac32ce9

View File

@ -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) &&