Skip to content

Commit 58700c8

Browse files
committed
refactor(midi-components): remove setLayer()
References mixxxdj#14203
1 parent 675d427 commit 58700c8

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

res/controllers/midi-components-0.0.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -653,33 +653,8 @@
653653
/**
654654
* @param newLayer Layer to apply to this
655655
* @param reconnectComponents Whether components should be reconnected or not
656-
* @deprecated since 2.5.0. Use @{ComponentContainer#setLayer} instead
657656
*/
658657
applyLayer: function(newLayer, reconnectComponents) {
659-
console.warn("ComponentContainer.applyLayer is deprecated; use ComponentContainer.setLayer instead");
660-
if (reconnectComponents !== false) {
661-
reconnectComponents = true;
662-
}
663-
if (reconnectComponents === true) {
664-
this.forEachComponent(function(component) {
665-
component.disconnect();
666-
});
667-
}
668-
669-
script.deepMerge(this, newLayer);
670-
671-
if (reconnectComponents === true) {
672-
this.forEachComponent(function(component) {
673-
component.connect();
674-
component.trigger();
675-
});
676-
}
677-
},
678-
/**
679-
* @param newLayer Layer to apply to this
680-
* @param reconnectComponents Whether components should be reconnected or not
681-
*/
682-
setLayer(newLayer, reconnectComponents) {
683658
if (reconnectComponents !== false) {
684659
reconnectComponents = true;
685660
}
@@ -697,7 +672,6 @@
697672
component.trigger();
698673
});
699674
}
700-
701675
},
702676
shutdown: function() {
703677
this.forEachComponent(function(component) {

0 commit comments

Comments
 (0)