Skip to content

Commit

Permalink
fix: remove deprecated event listener method from appearance.js (face…
Browse files Browse the repository at this point in the history
…book#32526)

Summary:
Remove unused deprecated event listener method from appearance.js

## Changelog

[General] [Removed] - Remove deprecated removeListener from Appearance that causes deprecation message in log box.

Pull Request resolved: facebook#32526

Reviewed By: cortinico

Differential Revision: D35287187

Pulled By: yungsters

fbshipit-source-id: cf0af61ed8636855aa625579e27816a6c10b6b81
  • Loading branch information
matinzd authored and Saadnajmi committed Jan 14, 2023
1 parent 84609bc commit e698107
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 @@ -93,12 +93,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 e698107

Please sign in to comment.