Skip to content

Commit 8bef1b3

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
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
1 parent 9e0cb5a commit 8bef1b3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ReactCommon/yoga/yoga/event/event.h

-5
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,7 @@ struct YOGA_EXPORT Event {
8989

9090
template <Type E>
9191
static void publish(const YGNode& node, const TypedData<E>& eventData = {}) {
92-
#ifdef YG_ENABLE_EVENTS
9392
publish(node, E, Data{eventData});
94-
#else
95-
(void) node;
96-
(void) eventData;
97-
#endif
9893
}
9994

10095
template <Type E>

0 commit comments

Comments
 (0)