1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-02 16:08:31 +00:00

eslint: comment out unused methods

This commit is contained in:
lemonslut 2025-06-07 22:46:35 -06:00
parent a7fcff6744
commit a633495f9e
No known key found for this signature in database

View file

@ -6,7 +6,7 @@ import { IS_FIREFOX } from 'src/utilities/constants';
// ============================================================================ // ============================================================================
import Module from 'utilities/module'; import Module from 'utilities/module';
import {debounce, has} from 'utilities/object'; import {debounce} from 'utilities/object';
const PORTRAIT_ROUTES = ['user', 'video', 'user-video', 'user-clip', 'user-videos', 'user-clips', 'user-collections', 'user-events', 'user-followers', 'user-following']; const PORTRAIT_ROUTES = ['user', 'video', 'user-video', 'user-clip', 'user-videos', 'user-clips', 'user-collections', 'user-events', 'user-followers', 'user-following'];
const MINIMAL_ROUTES = ['popout', 'embed-chat', 'dash-chat']; const MINIMAL_ROUTES = ['popout', 'embed-chat', 'dash-chat'];
@ -127,7 +127,7 @@ export default class Layout extends Module {
const ratio = size.width / size.height; const ratio = size.width / size.height;
return ratio <= ctx.get('layout.portrait-threshold'); return ratio <= ctx.get('layout.portrait-threshold');
}, },
changed: () => this.updatePortraitMode() // changed: () => this.updatePortraitMode()
}); });
this.settings.add('layout.inject-portrait', { this.settings.add('layout.inject-portrait', {
@ -184,7 +184,7 @@ export default class Layout extends Module {
// TODO: Calculate this based on the expected player height. // TODO: Calculate this based on the expected player height.
return true; return true;
}, },
changed: () => this.updatePortraitMode() // changed: () => this.updatePortraitMode()
}); });
this.settings.add('layout.portrait-extra-height', { this.settings.add('layout.portrait-extra-height', {
@ -241,7 +241,7 @@ export default class Layout extends Module {
onEnable() { onEnable() {
document.body.classList.toggle('ffz--portrait-invert', this.settings.get('layout.portrait-invert')); document.body.classList.toggle('ffz--portrait-invert', this.settings.get('layout.portrait-invert'));
this.on(':update-nav', this.updateNavLinks, this); // this.on(':update-nav', this.updateNavLinks, this);
this.on(':resize', this.handleResize, this); this.on(':resize', this.handleResize, this);
this.settings.getChanges('layout.portrait-min-chat', val => this.css_tweaks.toggle('portrait-chat', val)); this.settings.getChanges('layout.portrait-min-chat', val => this.css_tweaks.toggle('portrait-chat', val));
@ -440,11 +440,11 @@ export default class Layout extends Module {
} }
}*/ }*/
updateNavLinks() { // updateNavLinks() {
//
} // }
//
updatePortraitMode() { // updatePortraitMode() {
//
} // }
} }