Cleanup measure function

Summary: Trivial diff that cleans up measure function in C++ and Android

Reviewed By: shergin

Differential Revision: D13200340

fbshipit-source-id: 6c0888439640241cdedf514898a1ba3dac231d6a
This commit is contained in:
David Vacca authored and Facebook Github Bot committed 2018-11-30 17:19:11 -08:00
1 parent a2ead1c7b5
commit 3c50d04cf2
5 files changed
+4 -9

No files matched your search

@@ -23,7 +23,6 @@ void *TextLayoutManager::getNativeTextLayoutManager() const {
}
Size TextLayoutManager::measure(
Tag reactTag,
AttributedString attributedString,
ParagraphAttributes paragraphAttributes,
LayoutConstraints layoutConstraints) const {
@@ -34,7 +33,6 @@ Size TextLayoutManager::measure(
auto clazz =
jni::findClassStatic("com/facebook/fbreact/fabric/FabricUIManager");
static auto measure = clazz->getMethod<jlong(
jint,
jstring,
ReadableNativeMap::javaobject,
ReadableNativeMap::javaobject,
@@ -52,7 +50,6 @@ Size TextLayoutManager::measure(
local_ref<JString> componentName = make_jstring("RCTText");
return yogaMeassureToSize(measure(
fabricUIManager,
reactTag,
componentName.get(),
ReadableNativeMap::newObjectCxxArgs(toDynamic(attributedString)).get(),
ReadableNativeMap::newObjectCxxArgs(toDynamic(paragraphAttributes)).get(),