Skip to content

Commit

Permalink
Move YGSetUsedCachedEntries to internal header
Browse files Browse the repository at this point in the history
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
  • Loading branch information
davidaurelio authored and zhongwuzw committed Apr 9, 2019
1 parent e06aea1 commit 60e3845
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <fb/fbjni.h>
#include <yoga/YGNode.h>
#include <yoga/Yoga.h>
#include <yoga/Yoga-internal.h>
#include <yoga/log.h>
#include <cstdint>
#include <cstring>
Expand Down
2 changes: 2 additions & 0 deletions ReactCommon/yoga/yoga/Yoga-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ void YGNodeCalculateLayoutWithContext(
YGDirection ownerDirection,
void* layoutContext);

void YGSetUsedCachedEntries(size_t);

YG_EXTERN_C_END

namespace facebook {
Expand Down
2 changes: 0 additions & 2 deletions ReactCommon/yoga/yoga/Yoga.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,6 @@ WIN_EXPORT float YGRoundValueToPixelGrid(
const bool forceCeil,
const bool forceFloor);

void YGSetUsedCachedEntries(size_t);

YG_EXTERN_C_END

#ifdef __cplusplus
Expand Down

0 comments on commit 60e3845

Please sign in to comment.