From b015b99fcebd4cb75de8142bf14d2f47e7ae909b Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Wed, 3 Apr 2019 08:40:03 -0700 Subject: [PATCH] Move `YGSetUsedCachedEntries` to internal header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: @public In order to get out of pre-releases again, we move `YGSetUsedCachedEntries` from `Yoga.h` to `Yoga-internal.h`. This way, it’s obvious that the function is not public, and we can remove it from future versions without breaking semver contracts. Reviewed By: SidharthGuglani Differential Revision: D14726029 fbshipit-source-id: 8d7e747e843bf5c4b5e1d4cfbfa37ca9d240dffb --- ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp | 1 + ReactCommon/yoga/yoga/Yoga-internal.h | 2 ++ ReactCommon/yoga/yoga/Yoga.h | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp b/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp index a7fef2e6797..18de9246cf7 100644 --- a/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp +++ b/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/ReactCommon/yoga/yoga/Yoga-internal.h b/ReactCommon/yoga/yoga/Yoga-internal.h index f5cd6136afd..be815921e41 100644 --- a/ReactCommon/yoga/yoga/Yoga-internal.h +++ b/ReactCommon/yoga/yoga/Yoga-internal.h @@ -29,6 +29,8 @@ void YGNodeCalculateLayoutWithContext( YGDirection ownerDirection, void* layoutContext); +void YGSetUsedCachedEntries(size_t); + YG_EXTERN_C_END namespace facebook { diff --git a/ReactCommon/yoga/yoga/Yoga.h b/ReactCommon/yoga/yoga/Yoga.h index 7132a934f4e..753a2f9f832 100644 --- a/ReactCommon/yoga/yoga/Yoga.h +++ b/ReactCommon/yoga/yoga/Yoga.h @@ -411,8 +411,6 @@ WIN_EXPORT float YGRoundValueToPixelGrid( const bool forceCeil, const bool forceFloor); -void YGSetUsedCachedEntries(size_t); - YG_EXTERN_C_END #ifdef __cplusplus