From e0bc0ebe294b44d63bd5c06a246a4716bf0f5636 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 --- java/jni/YGJNI.cpp | 1 + yoga/Yoga-internal.h | 2 ++ yoga/Yoga.h | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java/jni/YGJNI.cpp b/java/jni/YGJNI.cpp index a7fef2e6..18de9246 100644 --- a/java/jni/YGJNI.cpp +++ b/java/jni/YGJNI.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/yoga/Yoga-internal.h b/yoga/Yoga-internal.h index f5cd6136..be815921 100644 --- a/yoga/Yoga-internal.h +++ b/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/yoga/Yoga.h b/yoga/Yoga.h index 7132a934..753a2f9f 100644 --- a/yoga/Yoga.h +++ b/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