diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-03-14 10:25:06 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-16 16:19:40 +0000 |
commit | d00b79568faef7c89b4be94b6f2a9390073ede5b (patch) | |
tree | b4d5b6391cba5d504d4b1097a63542c6e529734f /Userland/Libraries/LibJS/Runtime/Shape.cpp | |
parent | 07c7827dee4550ca16b4b6985b221e364b658cad (diff) | |
download | serenity-d00b79568faef7c89b4be94b6f2a9390073ede5b.zip |
Libraries: Use default constructors/destructors in LibJS
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Shape.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Shape.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Shape.cpp b/Userland/Libraries/LibJS/Runtime/Shape.cpp index dec25b0c5e..691bc6a35c 100644 --- a/Userland/Libraries/LibJS/Runtime/Shape.cpp +++ b/Userland/Libraries/LibJS/Runtime/Shape.cpp @@ -88,10 +88,6 @@ Shape* Shape::create_prototype_transition(Object* new_prototype) return new_shape; } -Shape::Shape(ShapeWithoutGlobalObjectTag) -{ -} - Shape::Shape(Object& global_object) : m_global_object(&global_object) { @@ -117,10 +113,6 @@ Shape::Shape(Shape& previous_shape, Object* new_prototype) { } -Shape::~Shape() -{ -} - void Shape::visit_edges(Cell::Visitor& visitor) { Cell::visit_edges(visitor); |