Skip to content

Commit da2a6c2

Browse files
committed
Remove unused JS code
1 parent 48a2509 commit da2a6c2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

assets/js/controllers/lang.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export function newLangController() {
1313
tabs: [],
1414
changeLanguage: function(index) {
1515
debug('changeLanguage', index);
16-
let tab = this.tabs[index];
1716
for (let i = 0; i < this.tabs.length; i++) {
1817
let isActive = i === index;
1918
this.tabs[i].active = isActive;
@@ -25,13 +24,6 @@ export function newLangController() {
2524
debug('initLangs', tabs);
2625
tabs[0].active = true;
2726
this.tabs = tabs;
28-
29-
return this.$nextTick(() => {
30-
let first = this.tabs[0];
31-
// Hide all but the first.
32-
for (let i = 1; i < this.tabs.length; i++) {}
33-
debug('first', first);
34-
});
3527
}
3628
};
3729
}

0 commit comments

Comments
 (0)