summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Profiler/Profile.cpp
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@colorado.edu>2021-05-21 13:15:07 -0600
committerLinus Groh <mail@linusgroh.de>2021-05-21 22:53:33 +0100
commit6ac454e70a5c2ca4103f0de9d0eccc01af54a8c3 (patch)
tree3b2b67f1f0716c5f6dc56965e5d5154e7268eb0b /Userland/DevTools/Profiler/Profile.cpp
parent4d34802f74c859135397f6f4fa2bbf9cf1829118 (diff)
downloadserenity-6ac454e70a5c2ca4103f0de9d0eccc01af54a8c3.zip
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.
Diffstat (limited to 'Userland/DevTools/Profiler/Profile.cpp')
-rw-r--r--Userland/DevTools/Profiler/Profile.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/DevTools/Profiler/Profile.cpp b/Userland/DevTools/Profiler/Profile.cpp
index 2c6f17f170..59f1923954 100644
--- a/Userland/DevTools/Profiler/Profile.cpp
+++ b/Userland/DevTools/Profiler/Profile.cpp
@@ -47,10 +47,6 @@ Profile::Profile(Vector<Process> processes, Vector<Event> events)
rebuild_tree();
}
-Profile::~Profile()
-{
-}
-
GUI::Model& Profile::model()
{
return *m_model;