Skip to content

Commit

Permalink
Remove unused JS code
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Nov 5, 2021
1 parent 48a2509 commit da2a6c2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions assets/js/controllers/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export function newLangController() {
tabs: [],
changeLanguage: function(index) {
debug('changeLanguage', index);
let tab = this.tabs[index];
for (let i = 0; i < this.tabs.length; i++) {
let isActive = i === index;
this.tabs[i].active = isActive;
Expand All @@ -25,13 +24,6 @@ export function newLangController() {
debug('initLangs', tabs);
tabs[0].active = true;
this.tabs = tabs;

return this.$nextTick(() => {
let first = this.tabs[0];
// Hide all but the first.
for (let i = 1; i < this.tabs.length; i++) {}
debug('first', first);
});
}
};
}

0 comments on commit da2a6c2

Please sign in to comment.