1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:58:11 +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:
Lenny Maiorani 2021-05-21 13:15:07 -06:00 committed by Linus Groh
parent 4d34802f74
commit 6ac454e70a
9 changed files with 43 additions and 53 deletions

View file

@ -19,8 +19,6 @@ class Project {
AK_MAKE_NONMOVABLE(Project);
public:
~Project();
static OwnPtr<Project> open_with_root_path(const String& root_path);
GUI::FileSystemModel& model() { return *m_model; }