Remove unneeded empty functions

This commit is contained in:
Bill Thornton 2022-03-02 00:59:04 -05:00
parent 9067b0e397
commit ddbe596696
8 changed files with 1 additions and 33 deletions

View File

@ -23,10 +23,6 @@ function onViewDestroy() {
this.initialTabIndex = null;
}
function onBeforeTabChange() {
// no-op
}
class TabbedView {
constructor(view, params) {
this.tabControllers = [];
@ -79,7 +75,7 @@ class TabbedView {
view.addEventListener('viewbeforehide', this.onPause.bind(this));
view.addEventListener('viewbeforeshow', function () {
mainTabsManager.setTabs(view, currentTabIndex, self.getTabs, getTabContainers, onBeforeTabChange, onTabChange, false);
mainTabsManager.setTabs(view, currentTabIndex, self.getTabs, getTabContainers, null, onTabChange, false);
});
view.addEventListener('viewshow', function (e) {

View File

@ -262,10 +262,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
this.renderTab = function () {
reloadItems(tabContent);
};
this.destroy = function () {
// TODO: Remove if unused
};
}
/* eslint-enable indent */

View File

@ -273,10 +273,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
reloadItems();
this.alphaPicker?.updateControls(getQuery(tabContent));
};
this.destroy = function () {
// TODO: Remove if unused
};
}
/* eslint-enable indent */

View File

@ -298,10 +298,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
reloadItems();
this.alphaPicker?.updateControls(getQuery());
};
this.destroy = function () {
// TODO: Remove if unused
};
}
/* eslint-enable indent */

View File

@ -239,10 +239,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
reloadItems(tabContent);
this.alphaPicker?.updateControls(getQuery(tabContent));
};
this.destroy = function () {
// TODO: Remove if unused
};
}
/* eslint-enable indent */

View File

@ -199,10 +199,6 @@ import Dashboard from '../../scripts/clientUtils';
self.renderTab = function () {
reloadItems(tabContent);
};
self.destroy = function () {
// TODO: Remove if unused
};
}
/* eslint-enable indent */

View File

@ -246,10 +246,6 @@ import Dashboard from '../../scripts/clientUtils';
self.renderTab = function () {
reloadItems(tabContent);
};
self.destroy = function () {
// TODO: Remove if unused
};
}
/* eslint-enable indent */

View File

@ -297,10 +297,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
reloadItems(tabContent);
this.alphaPicker?.updateControls(getQuery(tabContent));
};
this.destroy = function () {
// TODO: Remove if unused
};
}
/* eslint-enable indent */