DEV: Remove unused screenNotFull code (#26979)

This commit is contained in:
Jarek Radosz 2024-05-12 20:29:07 +02:00 committed by GitHub
parent fcd2293226
commit 38bd0b3f86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 15 deletions

View File

@ -9,12 +9,6 @@ export default Mixin.create(Scrolling, {
return this.eyeline?.update();
},
loadMoreUnlessFull() {
if (this.screenNotFull()) {
this.send("loadMore");
}
},
@on("didInsertElement")
_bindEyeline() {
const eyeline = Eyeline.create({

View File

@ -17,12 +17,6 @@ const ScrollingDOMMethods = {
document.removeEventListener("touchmove", onScrollMethod);
window.removeEventListener("scroll", onScrollMethod);
},
screenNotFull() {
return (
window.height > document.querySelector(".ember-application").offsetHeight
);
},
};
const Scrolling = Mixin.create({
@ -59,8 +53,6 @@ const Scrolling = Mixin.create({
ScrollingDOMMethods.bindOnScroll(onScrollMethod);
},
screenNotFull: () => ScrollingDOMMethods.screenNotFull(),
unbindScrolling() {
ScrollingDOMMethods.unbindOnScroll(this._scrollingMixinOnScrollMethod);
},

View File

@ -338,7 +338,6 @@ export default function setupTests(config) {
resetCategoryCache();
sinon.stub(ScrollingDOMMethods, "screenNotFull");
sinon.stub(ScrollingDOMMethods, "bindOnScroll");
sinon.stub(ScrollingDOMMethods, "unbindOnScroll");
});