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 коммит произвёл Facebook GitHub Bot
Родитель 9e0cb5a5ba
Коммит 8bef1b345b
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

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