inline trivial constructors / methods
Summary: @public inlines some trivial constructors, destructors, and methods. Reviewed By: astreet Differential Revision: D8912691 fbshipit-source-id: 79840ef3322676deebed99391390d6c1796963b5
This commit is contained in:
committed by
Facebook Github Bot
parent
f172d5d41c
commit
f95e3b49e9
@@ -254,29 +254,6 @@ void YGNode::setPosition(
|
||||
trailing[crossAxis]);
|
||||
}
|
||||
|
||||
YGNode::YGNode()
|
||||
: context_(nullptr),
|
||||
print_(nullptr),
|
||||
hasNewLayout_(true),
|
||||
nodeType_(YGNodeTypeDefault),
|
||||
measure_(nullptr),
|
||||
baseline_(nullptr),
|
||||
dirtied_(nullptr),
|
||||
style_(YGStyle()),
|
||||
layout_(YGLayout()),
|
||||
lineIndex_(0),
|
||||
owner_(nullptr),
|
||||
children_(YGVector()),
|
||||
config_(nullptr),
|
||||
isDirty_(false),
|
||||
resolvedDimensions_({{YGValueUndefined, YGValueUndefined}}) {}
|
||||
|
||||
YGNode::YGNode(const YGNode& node) = default;
|
||||
|
||||
YGNode::YGNode(const YGConfigRef newConfig) : YGNode() {
|
||||
config_ = newConfig;
|
||||
}
|
||||
|
||||
YGNode& YGNode::operator=(const YGNode& node) {
|
||||
if (&node == this) {
|
||||
return *this;
|
||||
@@ -360,11 +337,6 @@ void YGNode::clearChildren() {
|
||||
children_.shrink_to_fit();
|
||||
}
|
||||
|
||||
YGNode::~YGNode() {
|
||||
// All the member variables are deallocated externally, so no need to
|
||||
// deallocate here
|
||||
}
|
||||
|
||||
// Other Methods
|
||||
|
||||
void YGNode::cloneChildrenIfNeeded() {
|
||||
|
Reference in New Issue
Block a user