Remove unused variables
This commit is contained in:
@@ -9,7 +9,6 @@ import autoFocuser from '../../../components/autoFocuser';
|
||||
|
||||
export default function (view, params) {
|
||||
let settingsInstance;
|
||||
let hasChanges;
|
||||
|
||||
const userId = params.userId || ApiClient.getCurrentUserId();
|
||||
const currentSettings = userId === ApiClient.getCurrentUserId() ? userSettings : new UserSettings();
|
||||
@@ -30,10 +29,6 @@ import autoFocuser from '../../../components/autoFocuser';
|
||||
}
|
||||
});
|
||||
|
||||
view.addEventListener('change', function () {
|
||||
hasChanges = true;
|
||||
});
|
||||
|
||||
view.addEventListener('viewdestroy', function () {
|
||||
if (settingsInstance) {
|
||||
settingsInstance.destroy();
|
||||
|
||||
Reference in New Issue
Block a user