Skip to content

Commit

Permalink
Remove "YG_ENABLE_EVENTS" Preprocessor Definition
Browse files Browse the repository at this point in the history
Summary:
This is always enabled internally, so we should just turn it on everywhere.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D42406509

fbshipit-source-id: c9cdd4fcf907d66cd276e0aec608a2e7db7ca5fb
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Jan 9, 2023
1 parent 9e0cb5a commit 8bef1b3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ReactCommon/yoga/yoga/event/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@ struct YOGA_EXPORT Event {

template <Type E>
static void publish(const YGNode& node, const TypedData<E>& eventData = {}) {
#ifdef YG_ENABLE_EVENTS
publish(node, E, Data{eventData});
#else
(void) node;
(void) eventData;
#endif
}

template <Type E>
Expand Down

0 comments on commit 8bef1b3

Please sign in to comment.