Skip to content

Commit

Permalink
remove unused method nativeFabricUIManager.cloneNode
Browse files Browse the repository at this point in the history
Summary:
I couldn't find a reference nor a reason for this method. It's a bit hard to grep, so let me know if I missed something.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D61558809

fbshipit-source-id: d977440ff98b2a5bf115d19bfa4acbcf6d216b2a
  • Loading branch information
kassens authored and facebook-github-bot committed Aug 23, 2024
1 parent 6b104bb commit 17613fc
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,30 +264,6 @@ jsi::Value UIManagerBinding::get(
});
}

// Semantic: Clones the node with *same* props and *same* children.
if (methodName == "cloneNode") {
auto paramCount = 1;
return jsi::Function::createFromHostFunction(
runtime,
name,
paramCount,
[uiManager, methodName, paramCount](
jsi::Runtime& runtime,
const jsi::Value& /*thisValue*/,
const jsi::Value* arguments,
size_t count) -> jsi::Value {
validateArgumentCount(runtime, methodName, paramCount, count);

return valueFromShadowNode(
runtime,
uiManager->cloneNode(
*shadowNodeFromValue(runtime, arguments[0]),
nullptr,
RawProps()),
true);
});
}

if (methodName == "setIsJSResponder") {
auto paramCount = 3;
return jsi::Function::createFromHostFunction(
Expand Down

0 comments on commit 17613fc

Please sign in to comment.