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:
Родитель
9e0cb5a5ba
Коммит
8bef1b345b
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче