File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,6 @@ SafeNumeric<uint64_t> Memory::mem_usage;
6262SafeNumeric<uint64_t > Memory::max_usage;
6363#endif
6464
65- SafeNumeric<uint64_t > Memory::alloc_count;
66-
6765void *Memory::alloc_aligned_static (size_t p_bytes, size_t p_alignment) {
6866 DEV_ASSERT (is_power_of_2 (p_alignment));
6967
@@ -107,8 +105,6 @@ void *Memory::alloc_static(size_t p_bytes, bool p_pad_align) {
107105
108106 ERR_FAIL_NULL_V (mem, nullptr );
109107
110- alloc_count.increment ();
111-
112108 if (prepad) {
113109 uint8_t *s8 = (uint8_t *)mem;
114110
@@ -186,8 +182,6 @@ void Memory::free_static(void *p_ptr, bool p_pad_align) {
186182 bool prepad = p_pad_align;
187183#endif
188184
189- alloc_count.decrement ();
190-
191185 if (prepad) {
192186 mem -= DATA_OFFSET;
193187
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ class Memory {
4343 static SafeNumeric<uint64_t > max_usage;
4444#endif
4545
46- static SafeNumeric<uint64_t > alloc_count;
47-
4846public:
4947 // Alignment: ↓ max_align_t ↓ uint64_t ↓ max_align_t
5048 // ┌─────────────────┬──┬────────────────┬──┬───────────...
You can’t perform that action at this time.
0 commit comments