mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
DevTools: Remove redundant default destructor and forward declarations
Problem: - Default destructors (and constructors) are in `.cpp` files. This prevents the compiler's optimizer from inlining them when it thinks inlining is appropriate (unless LTO is used). - Forward declarations can prevent some optimizations, such as inlining of constructors and destructors. Solution: - Remove them or set them to `= default` and let the compiler handle the generation of them. - Remove unneeded forward declarations.
This commit is contained in:
parent
4d34802f74
commit
6ac454e70a
Notes:
sideshowbarker
2024-07-18 17:35:14 +09:00
Author: https://github.com/ldm5180
Commit: 6ac454e70a
Pull-request: https://github.com/SerenityOS/serenity/pull/7357
9 changed files with 43 additions and 53 deletions
|
@ -26,10 +26,6 @@ void RangeAllocator::initialize_with_range(VirtualAddress base, size_t size)
|
|||
m_available_ranges.append({ base, size });
|
||||
}
|
||||
|
||||
RangeAllocator::~RangeAllocator()
|
||||
{
|
||||
}
|
||||
|
||||
void RangeAllocator::dump() const
|
||||
{
|
||||
dbgln("RangeAllocator({})", this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue