mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
cleanup
This commit is contained in:
@@ -30,7 +30,6 @@ namespace se {
|
||||
{
|
||||
assert(_jsRefCount == 0 || _jsRefCount == 1);
|
||||
_cleanup();
|
||||
AutoHandleScope::unrefObject(this);
|
||||
}
|
||||
|
||||
Object* Object::createPlainObject(bool rooted)
|
||||
@@ -142,7 +141,6 @@ namespace se {
|
||||
JSValueProtect(__cx, _obj);
|
||||
}
|
||||
|
||||
AutoHandleScope::refObject(this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -289,8 +289,6 @@ bool native_ptr_to_rooted_seval(typename std::enable_if<!std::is_base_of<cocos2d
|
||||
else
|
||||
{
|
||||
obj = iter->second;
|
||||
printf("Return from cache, type: (%s, %p), se::Object type: %s\n", typeid(*v).name(), v, obj->_privateDataType.c_str());
|
||||
assert(0 == strcmp(typeid(*v).name(), obj->_privateDataType.c_str()));
|
||||
if (isReturnCachedValue != nullptr)
|
||||
{
|
||||
*isReturnCachedValue = true;
|
||||
|
||||
Reference in New Issue
Block a user