From 3ba2ef2d616e5bd536dae1260b8576d3e0c46ce9 Mon Sep 17 00:00:00 2001 From: halx99 Date: Sun, 5 May 2024 00:42:16 +0800 Subject: [PATCH] Remove unused fileds from ax::Objec --- core/base/Object.cpp | 2 -- core/base/Object.h | 7 ------- 2 files changed, 9 deletions(-) diff --git a/core/base/Object.cpp b/core/base/Object.cpp index cdcd53eeda..2fc9a6a4a0 100644 --- a/core/base/Object.cpp +++ b/core/base/Object.cpp @@ -48,8 +48,6 @@ Object::Object() : _referenceCount(1) // when the Object is created, the reference count of it is 1 #if AX_ENABLE_SCRIPT_BINDING , _luaID(0) - , _scriptObject(nullptr) - , _rooted(false) #endif { #if AX_ENABLE_SCRIPT_BINDING diff --git a/core/base/Object.h b/core/base/Object.h index d042e4f273..6503813c0e 100644 --- a/core/base/Object.h +++ b/core/base/Object.h @@ -145,13 +145,6 @@ public: unsigned int _ID; /// Lua reference id int _luaID; - /// scriptObject, support for swift - void* _scriptObject; - - /** - When true, it means that the object was already rooted. - */ - bool _rooted; #endif // Memory leak diagnostic data (only included when AX_OBJECT_LEAK_DETECTION is defined and its value isn't zero)