From 2168539294dcd46f30550843136e11a7e7be90fb Mon Sep 17 00:00:00 2001 From: tangkai <1944876319@qq.com> Date: Fri, 27 Dec 2024 17:06:26 +0800 Subject: [PATCH] delete unused codes --- native/cocos/bindings/manual/jsb_conversions_spec.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/native/cocos/bindings/manual/jsb_conversions_spec.cpp b/native/cocos/bindings/manual/jsb_conversions_spec.cpp index b11d3e8c63a..ebb8248f253 100644 --- a/native/cocos/bindings/manual/jsb_conversions_spec.cpp +++ b/native/cocos/bindings/manual/jsb_conversions_spec.cpp @@ -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; } // @@ -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)