Skip to content

Commit

Permalink
delete unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
tangkaikk committed Dec 27, 2024
1 parent aec898d commit 2168539
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions native/cocos/bindings/manual/jsb_conversions_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1827,9 +1827,6 @@ bool nativevalue_to_se(const b2Vec2 &from, se::Value &to, se::Object * /*ctx*/)
to.setObject(obj, true);
obj->setPrivateData(ccnew b2Vec2(from));
obj->getPrivateObject()->tryAllowDestroyInGC();
// obj->setProperty("x", se::Value(from.x));
// obj->setProperty("y", se::Value(from.y));
// to.setObject(obj);
return true;
}
//
Expand All @@ -1838,12 +1835,6 @@ bool nativevalue_to_se(const b2Vec3 &from, se::Value &to, se::Object * /*ctx*/)
to.setObject(obj, true);
obj->setPrivateData(ccnew b2Vec3(from));
obj->getPrivateObject()->tryAllowDestroyInGC();

// se::HandleObject obj(se::Object::createPlainObject());
// obj->setProperty("x", se::Value(from.x));
// obj->setProperty("y", se::Value(from.y));
// obj->setProperty("z", se::Value(from.z));
// to.setObject(obj);
return true;
}
bool nativevalue_to_se(const b2Color &from, se::Value &to, se::Object * /*ctx*/) { // NOLINT(readability-identifier-naming)
Expand Down

0 comments on commit 2168539

Please sign in to comment.