Skip to content

Commit

Permalink
Remove JS deprecation method.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwokcb committed Apr 9, 2024
1 parent 083f2c5 commit d315c05
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/JsMaterialX/JsMaterialXCore/JsDocument.cpp
Expand Up @@ -62,15 +62,6 @@ EMSCRIPTEN_BINDINGS(document)
BIND_MEMBER_FUNC("addNodeDef", mx::Document, addNodeDef, 0, 3, stRef, stRef, stRef)
BIND_MEMBER_FUNC("addNodeDefFromGraph", mx::Document, addNodeDefFromGraph, 4,4, const mx::NodeGraphPtr, const std::string,
const std::string &, const std::string)
.function("addNodeDefFromGraph", ems::optional_override([](mx::Document& self, mx::NodeGraphPtr nodeGraph, const std::string nodedefName,
const std::string& node, const std::string newGraphName)
{
const std::string message = "This method is deprecated, use addNodeDefFromGraph(nodeGraph, nodeDefName, category, newGraphName) instead.";
EM_ASM_({
console.warn(UTF8ToString($0));
}, message.c_str());
return self.addNodeDefFromGraph(nodeGraph, nodedefName, node, newGraphName);
}))
.function("getNodeDef", &mx::Document::getNodeDef)
.function("getNodeDefs", &mx::Document::getNodeDefs)
.function("removeNodeDef", &mx::Document::removeNodeDef)
Expand Down

0 comments on commit d315c05

Please sign in to comment.