mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
eslint: comment out some empty methods that don't appear to be used
This commit is contained in:
parent
bc91824beb
commit
c9dd385370
1 changed files with 34 additions and 34 deletions
|
@ -202,8 +202,8 @@ export default class Player extends PlayerBase {
|
|||
}
|
||||
});
|
||||
|
||||
this.PlayerSource.on('mount', this.checkCarousel, this);
|
||||
this.PlayerSource.on('update', this.checkCarousel, this);
|
||||
// this.PlayerSource.on('mount', this.checkCarousel, this);
|
||||
// this.PlayerSource.on('update', this.checkCarousel, this);
|
||||
}
|
||||
|
||||
maybeOpenChat() {
|
||||
|
@ -220,24 +220,24 @@ export default class Player extends PlayerBase {
|
|||
}
|
||||
|
||||
|
||||
checkCarousel(inst) {
|
||||
/*if ( this.settings.get('channel.hosting.enable') )
|
||||
return;
|
||||
|
||||
if ( inst.props?.playerType === 'channel_home_carousel' ) {
|
||||
if ( inst.props.content?.hostChannel === inst._ffz_cached_login )
|
||||
return;
|
||||
|
||||
inst._ffz_cached_login = inst.props.content?.hostChannel;
|
||||
if ( ! inst._ffz_cached_login )
|
||||
return;
|
||||
|
||||
const player = inst.props.mediaPlayerInstance,
|
||||
events = inst.props.playerEvents;
|
||||
|
||||
this.stopPlayer(player, events, inst);
|
||||
}*/
|
||||
}
|
||||
// checkCarousel(inst) {
|
||||
// /*if ( this.settings.get('channel.hosting.enable') )
|
||||
// return;
|
||||
//
|
||||
// if ( inst.props?.playerType === 'channel_home_carousel' ) {
|
||||
// if ( inst.props.content?.hostChannel === inst._ffz_cached_login )
|
||||
// return;
|
||||
//
|
||||
// inst._ffz_cached_login = inst.props.content?.hostChannel;
|
||||
// if ( ! inst._ffz_cached_login )
|
||||
// return;
|
||||
//
|
||||
// const player = inst.props.mediaPlayerInstance,
|
||||
// events = inst.props.playerEvents;
|
||||
//
|
||||
// this.stopPlayer(player, events, inst);
|
||||
// }*/
|
||||
// }
|
||||
|
||||
|
||||
getData() {
|
||||
|
@ -275,18 +275,18 @@ export default class Player extends PlayerBase {
|
|||
* @memberof Player
|
||||
* @returns {void}
|
||||
*/
|
||||
repositionPlayer() {
|
||||
// TODO: New implementation that works.
|
||||
}
|
||||
|
||||
updateSquadContext() {
|
||||
this.settings.updateContext({
|
||||
squad_bar: this.hasSquadBar
|
||||
});
|
||||
}
|
||||
|
||||
get hasSquadBar() {
|
||||
// TODO: New implementation that works.
|
||||
return false;
|
||||
}
|
||||
// repositionPlayer() {
|
||||
// // TODO: New implementation that works.
|
||||
// }
|
||||
//
|
||||
// updateSquadContext() {
|
||||
// this.settings.updateContext({
|
||||
// squad_bar: this.hasSquadBar
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// get hasSquadBar() {
|
||||
// // TODO: New implementation that works.
|
||||
// return false;
|
||||
// }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue