mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
Delete YGNode ctor w/arg per member
Summary: It doesn't seem to be used internally, it hurts greppability, and there are setters for these properties as needed anyway. Reviewed By: davidaurelio Differential Revision: D8842084 fbshipit-source-id: f0275b490e585ea94df341c97c34b441ed91c4fb
This commit is contained in:
parent
f05943de0a
commit
46fb04e746
@ -292,38 +292,6 @@ YGNode::YGNode(const YGConfigRef newConfig) : YGNode() {
|
|||||||
config_ = newConfig;
|
config_ = newConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
YGNode::YGNode(
|
|
||||||
void* context,
|
|
||||||
YGPrintFunc print,
|
|
||||||
bool hasNewLayout,
|
|
||||||
YGNodeType nodeType,
|
|
||||||
YGMeasureFunc measure,
|
|
||||||
YGBaselineFunc baseline,
|
|
||||||
YGDirtiedFunc dirtied,
|
|
||||||
YGStyle style,
|
|
||||||
const YGLayout& layout,
|
|
||||||
uint32_t lineIndex,
|
|
||||||
YGNodeRef owner,
|
|
||||||
const YGVector& children,
|
|
||||||
YGConfigRef config,
|
|
||||||
bool isDirty,
|
|
||||||
std::array<YGValue, 2> resolvedDimensions)
|
|
||||||
: context_(context),
|
|
||||||
print_(print),
|
|
||||||
hasNewLayout_(hasNewLayout),
|
|
||||||
nodeType_(nodeType),
|
|
||||||
measure_(measure),
|
|
||||||
baseline_(baseline),
|
|
||||||
dirtied_(dirtied),
|
|
||||||
style_(style),
|
|
||||||
layout_(layout),
|
|
||||||
lineIndex_(lineIndex),
|
|
||||||
owner_(owner),
|
|
||||||
children_(children),
|
|
||||||
config_(config),
|
|
||||||
isDirty_(isDirty),
|
|
||||||
resolvedDimensions_(resolvedDimensions) {}
|
|
||||||
|
|
||||||
YGNode& YGNode::operator=(const YGNode& node) {
|
YGNode& YGNode::operator=(const YGNode& node) {
|
||||||
if (&node == this) {
|
if (&node == this) {
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -40,22 +40,6 @@ struct YGNode {
|
|||||||
explicit YGNode(const YGConfigRef newConfig);
|
explicit YGNode(const YGConfigRef newConfig);
|
||||||
YGNode(const YGNode& node);
|
YGNode(const YGNode& node);
|
||||||
YGNode& operator=(const YGNode& node);
|
YGNode& operator=(const YGNode& node);
|
||||||
YGNode(
|
|
||||||
void* context,
|
|
||||||
YGPrintFunc print,
|
|
||||||
bool hasNewLayout,
|
|
||||||
YGNodeType nodeType,
|
|
||||||
YGMeasureFunc measure,
|
|
||||||
YGBaselineFunc baseline,
|
|
||||||
YGDirtiedFunc dirtied,
|
|
||||||
YGStyle style,
|
|
||||||
const YGLayout& layout,
|
|
||||||
uint32_t lineIndex,
|
|
||||||
YGNodeRef owner,
|
|
||||||
const YGVector& children,
|
|
||||||
YGConfigRef config,
|
|
||||||
bool isDirty,
|
|
||||||
std::array<YGValue, 2> resolvedDimensions);
|
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
void* getContext() const {
|
void* getContext() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user