Skip to content

Commit

Permalink
voicingVisibleEmitter is removed, replaced by canVoiceEmitter, see #1300
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Aug 1, 2022
1 parent e9f65bc commit edcc7a6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions js/display/Instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ class Instance {
this.visibleEmitter = new TinyEmitter();
this.relativeVisibleEmitter = new TinyEmitter();
this.selfVisibleEmitter = new TinyEmitter();
this.voicingVisibleEmitter = new TinyEmitter();
this.canVoiceEmitter = new TinyEmitter();

this.cleanInstance( display, trail );
Expand Down Expand Up @@ -1564,9 +1563,6 @@ class Instance {
if ( this.selfVisible !== wasSelfVisible ) {
this.selfVisibleEmitter.emit();
}
if ( this.voicingVisible !== wasVoicingVisible ) {
this.voicingVisibleEmitter.emit();
}

// An Instance can voice when it is globally visible and voicingVisible. Notify when this state has changed
// based on these dependencies.
Expand Down Expand Up @@ -1824,7 +1820,6 @@ class Instance {
this.visibleEmitter.removeAllListeners();
this.relativeVisibleEmitter.removeAllListeners();
this.selfVisibleEmitter.removeAllListeners();
this.voicingVisibleEmitter.removeAllListeners();

this.freeToPool();

Expand Down

0 comments on commit edcc7a6

Please sign in to comment.