mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-11 16:25:41 +00:00
Style: Remove unnecessary semicolons from core
Semicolons are not necessary after function definitions or control flow blocks, and having some code use them makes things inconsistent (and occasionally can mess up `clang-format`'s formatting). Removing them is tedious work though, I had to do this manually (regex + manual review) as I couldn't find a tool for that. All other code folders would need to get the same treatment.
This commit is contained in:
@@ -341,7 +341,7 @@ Error PoolAllocator::resize(ID p_mem, int p_new_size) {
|
||||
if (uint32_t(_free + aligned(e->len)) < alloc_size) {
|
||||
mt_unlock();
|
||||
ERR_FAIL_V(ERR_OUT_OF_MEMORY);
|
||||
};
|
||||
}
|
||||
|
||||
EntryIndicesPos entry_indices_pos;
|
||||
|
||||
@@ -358,7 +358,7 @@ Error PoolAllocator::resize(ID p_mem, int p_new_size) {
|
||||
next_pos = pool_size; // - static_area_size;
|
||||
} else {
|
||||
next_pos = entry_array[entry_indices[entry_indices_pos + 1]].pos;
|
||||
};
|
||||
}
|
||||
|
||||
if ((next_pos - e->pos) > alloc_size) {
|
||||
free_mem += aligned(e->len);
|
||||
@@ -564,8 +564,8 @@ PoolAllocator::PoolAllocator(void *p_mem, int p_size, int p_align, bool p_needs_
|
||||
mem8 += p_align - (ofs % p_align);
|
||||
p_size -= dif;
|
||||
p_mem = (void *)mem8;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
create_pool(p_mem, p_size, p_max_entries);
|
||||
needs_locking = p_needs_locking;
|
||||
|
||||
Reference in New Issue
Block a user