mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:42:45 +08:00
DEV: Remove unused screenNotFull
code (#26979)
This commit is contained in:
parent
fcd2293226
commit
38bd0b3f86
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user