diff options
Diffstat (limited to 'core/rid_owner.h')
-rw-r--r-- | core/rid_owner.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/rid_owner.h b/core/rid_owner.h index 77bbc3c83c..2489475c68 100644 --- a/core/rid_owner.h +++ b/core/rid_owner.h @@ -44,7 +44,6 @@ #include <typeinfo> class RID_AllocBase { - static volatile uint64_t base_id; protected: @@ -68,7 +67,6 @@ public: template <class T, bool THREAD_SAFE = false> class RID_Alloc : public RID_AllocBase { - T **chunks = nullptr; uint32_t **free_list_chunks = nullptr; uint32_t **validator_chunks = nullptr; @@ -83,7 +81,6 @@ class RID_Alloc : public RID_AllocBase { public: RID make_rid(const T &p_value) { - if (THREAD_SAFE) { spin_lock.lock(); } @@ -137,7 +134,6 @@ public: } _FORCE_INLINE_ T *getornull(const RID &p_rid) { - if (THREAD_SAFE) { spin_lock.lock(); } @@ -172,7 +168,6 @@ public: } _FORCE_INLINE_ bool owns(const RID &p_rid) { - if (THREAD_SAFE) { spin_lock.lock(); } @@ -201,7 +196,6 @@ public: } _FORCE_INLINE_ void free(const RID &p_rid) { - if (THREAD_SAFE) { spin_lock.lock(); } |