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:
committed by
Facebook GitHub Bot
parent
7e96b65790
commit
9808358e08
@@ -89,12 +89,7 @@ struct YOGA_EXPORT Event {
|
|||||||
|
|
||||||
template <Type E>
|
template <Type E>
|
||||||
static void publish(const YGNode& node, const TypedData<E>& eventData = {}) {
|
static void publish(const YGNode& node, const TypedData<E>& eventData = {}) {
|
||||||
#ifdef YG_ENABLE_EVENTS
|
|
||||||
publish(node, E, Data{eventData});
|
publish(node, E, Data{eventData});
|
||||||
#else
|
|
||||||
(void) node;
|
|
||||||
(void) eventData;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <Type E>
|
template <Type E>
|
||||||
|
Reference in New Issue
Block a user