mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
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:
parent
139cf6cc13
commit
b43ac32ce9
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user