Revert D48710796: C++ Cleanup 2/N: Reorganize YGConfig
Differential Revision: D48710796 Original commit changeset: d548553f7ce8 Original Phabricator Diff: D48710796 fbshipit-source-id: c8b2de245f3894f6a87c262ec70d313020aa228e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ea7f61a3db
commit
13c5ce2234
@@ -19,8 +19,6 @@
|
||||
// API and use that
|
||||
#include <yoga/YGNode.h>
|
||||
|
||||
using namespace facebook;
|
||||
using namespace facebook::yoga;
|
||||
using namespace facebook::yoga::vanillajni;
|
||||
|
||||
static inline ScopedLocalRef<jobject> YGNodeJobject(
|
||||
@@ -196,7 +194,7 @@ static void jni_YGConfigSetLoggerJNI(
|
||||
}
|
||||
|
||||
*context = newGlobalRef(env, logger);
|
||||
static_cast<yoga::Config*>(config)->setLogger(YGJNILogFunc);
|
||||
config->setLogger(YGJNILogFunc);
|
||||
} else {
|
||||
if (context != nullptr) {
|
||||
delete context;
|
||||
|
Reference in New Issue
Block a user