mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove unused screenNotFull code (#26979)
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
@@ -338,7 +338,6 @@ export default function setupTests(config) {
|
||||
|
||||
resetCategoryCache();
|
||||
|
||||
sinon.stub(ScrollingDOMMethods, "screenNotFull");
|
||||
sinon.stub(ScrollingDOMMethods, "bindOnScroll");
|
||||
sinon.stub(ScrollingDOMMethods, "unbindOnScroll");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user