Skip to content

Commit

Permalink
fix: remove deprecated event listener method from appearance.js
Browse files Browse the repository at this point in the history
  • Loading branch information
matinzd committed Mar 31, 2022
1 parent 2a6a685 commit e02c2bf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Libraries/Utilities/Appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,4 @@ module.exports = {
addChangeListener(listener: AppearanceListener): EventSubscription {
return eventEmitter.addListener('change', listener);
},

/**
* @deprecated Use `remove` on the EventSubscription from `addEventListener`.
*/
removeChangeListener(listener: AppearanceListener): void {
// NOTE: This will report a deprecation notice via `console.error`.
eventEmitter.removeListener('change', listener);
},
};

0 comments on commit e02c2bf

Please sign in to comment.