From 8bef1b345b010b8566dd6e33a42e9cd72414b251 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Mon, 9 Jan 2023 13:59:19 -0800 Subject: [PATCH] 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 --- ReactCommon/yoga/yoga/event/event.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ReactCommon/yoga/yoga/event/event.h b/ReactCommon/yoga/yoga/event/event.h index a50f8e4301fa80..fb81b8faa0d4b4 100644 --- a/ReactCommon/yoga/yoga/event/event.h +++ b/ReactCommon/yoga/yoga/event/event.h @@ -89,12 +89,7 @@ struct YOGA_EXPORT Event { template static void publish(const YGNode& node, const TypedData& eventData = {}) { -#ifdef YG_ENABLE_EVENTS publish(node, E, Data{eventData}); -#else - (void) node; - (void) eventData; -#endif } template