mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibJS: Use default instead of an empty constructor/destructor
Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
parent
fda48d7a6b
commit
e2d154c74d
Notes:
sideshowbarker
2024-07-18 03:51:24 +09:00
Author: https://github.com/bgianfo
Commit: e2d154c74d
Pull-request: https://github.com/SerenityOS/serenity/pull/10053
3 changed files with 2 additions and 6 deletions
|
@ -17,10 +17,6 @@ CellAllocator::CellAllocator(size_t cell_size)
|
|||
{
|
||||
}
|
||||
|
||||
CellAllocator::~CellAllocator()
|
||||
{
|
||||
}
|
||||
|
||||
Cell* CellAllocator::allocate_cell(Heap& heap)
|
||||
{
|
||||
if (m_usable_blocks.is_empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue