Skip to content

Commit b015b99

Browse files
davidaureliofacebook-github-bot
authored andcommitted
Move YGSetUsedCachedEntries to internal header
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
1 parent f00d1b8 commit b015b99

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <fb/fbjni.h>
88
#include <yoga/YGNode.h>
99
#include <yoga/Yoga.h>
10+
#include <yoga/Yoga-internal.h>
1011
#include <yoga/log.h>
1112
#include <cstdint>
1213
#include <cstring>

ReactCommon/yoga/yoga/Yoga-internal.h

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ void YGNodeCalculateLayoutWithContext(
2929
YGDirection ownerDirection,
3030
void* layoutContext);
3131

32+
void YGSetUsedCachedEntries(size_t);
33+
3234
YG_EXTERN_C_END
3335

3436
namespace facebook {

ReactCommon/yoga/yoga/Yoga.h

-2
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,6 @@ WIN_EXPORT float YGRoundValueToPixelGrid(
411411
const bool forceCeil,
412412
const bool forceFloor);
413413

414-
void YGSetUsedCachedEntries(size_t);
415-
416414
YG_EXTERN_C_END
417415

418416
#ifdef __cplusplus

0 commit comments

Comments
 (0)