Remove "YG_ENABLE_EVENTS" Preprocessor Definition

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
This commit is contained in:
Nick Gerleman
2023-01-09 13:59:19 -08:00
committed by Facebook GitHub Bot
parent 7e96b65790
commit 9808358e08

View File

@@ -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>