Move NodeToString.cpp to benchmark and remove interal usages (#1568)
Summary: X-link: https://github.com/facebook/react-native/pull/42710 Pull Request resolved: https://github.com/facebook/yoga/pull/1568 This is no longer going to be built with normal yoga so we are going to switch to a public API Reviewed By: NickGerleman Differential Revision: D53141235 fbshipit-source-id: 259270a4cd91ef0dab91cefba9c41953b6340d78
This commit is contained in:
committed by
Facebook GitHub Bot
parent
28975a6053
commit
19af9e6450
@@ -26,7 +26,6 @@
|
||||
#include <yoga/algorithm/TrailingPosition.h>
|
||||
#include <yoga/debug/AssertFatal.h>
|
||||
#include <yoga/debug/Log.h>
|
||||
#include <yoga/debug/NodeToString.h>
|
||||
#include <yoga/event/event.h>
|
||||
#include <yoga/node/Node.h>
|
||||
#include <yoga/numeric/Comparison.h>
|
||||
@@ -2366,14 +2365,6 @@ void calculateLayout(
|
||||
node->setPosition(
|
||||
node->getLayout().direction(), ownerWidth, ownerHeight, ownerWidth);
|
||||
roundLayoutResultsToPixelGrid(node, 0.0f, 0.0f);
|
||||
|
||||
#ifdef DEBUG
|
||||
if (node->getConfig()->shouldPrintTree()) {
|
||||
yoga::print(
|
||||
node,
|
||||
PrintOptions::Layout | PrintOptions::Children | PrintOptions::Style);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Event::publish<Event::LayoutPassEnd>(node, {&markerData});
|
||||
|
Reference in New Issue
Block a user