mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +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
9 changed files with 43 additions and 53 deletions
|
@ -14,7 +14,6 @@ namespace UserspaceEmulator {
|
|||
class RangeAllocator {
|
||||
public:
|
||||
RangeAllocator();
|
||||
~RangeAllocator();
|
||||
|
||||
void initialize_with_range(VirtualAddress, size_t);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue