Merge pull request #4775 from thornbill/unused-privates

This commit is contained in:
Bill Thornton 2023-09-14 17:37:16 -04:00 committed by GitHub
commit 2c1167c193
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 75 additions and 87 deletions

View file

@ -65,6 +65,7 @@ module.exports = {
'no-trailing-spaces': ['error'],
'no-unused-expressions': ['off'],
'@typescript-eslint/no-unused-expressions': ['error', { 'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true }],
'no-unused-private-class-members': ['error'],
'no-useless-constructor': ['off'],
'@typescript-eslint/no-useless-constructor': ['error'],
'no-var': ['error'],

View file

@ -129,22 +129,6 @@ class PluginManager {
.sort((p1, p2) => (p1.priority || 0) - (p2.priority || 0))[0];
}
#mapRoute(plugin, route) {
if (typeof plugin === 'string') {
plugin = this.pluginsList.filter((p) => {
return (p.id || p.packageName) === plugin;
})[0];
}
route = route.path || route;
if (route.toLowerCase().startsWith('http')) {
return route;
}
return '/plugins/' + plugin.id + '/' + route;
}
mapPath(plugin, path, addCacheParam) {
if (typeof plugin === 'string') {
plugin = this.pluginsList.filter((p) => {

View file

@ -278,10 +278,13 @@ export class HtmlVideoPlayer {
* @type {number | null | undefined}
*/
#currentTime;
/**
* @private (used in other files)
* @type {any | undefined}
*/
#flvPlayer;
_flvPlayer;
/**
* @private (used in other files)
* @type {any | undefined}
@ -407,7 +410,7 @@ export class HtmlVideoPlayer {
flvPlayer.attachMediaElement(elem);
flvPlayer.load();
this.#flvPlayer = flvPlayer;
this._flvPlayer = flvPlayer;
// This is needed in setCurrentTrackElement
this.#currentSrc = url;