From f8cb4f9686b11748951dc3895d86758a4dad27eb Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 16 Jul 2023 14:29:41 -0400 Subject: [PATCH] LibJS: Remove GeneratorObject::initialize() override This was missing its Base invocation. But since this override is not doing anything anyways, just remove it. --- Userland/Libraries/LibJS/Runtime/GeneratorObject.cpp | 5 ----- Userland/Libraries/LibJS/Runtime/GeneratorObject.h | 1 - 2 files changed, 6 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/GeneratorObject.cpp b/Userland/Libraries/LibJS/Runtime/GeneratorObject.cpp index 192034e3ef..7099bb8124 100644 --- a/Userland/Libraries/LibJS/Runtime/GeneratorObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/GeneratorObject.cpp @@ -41,11 +41,6 @@ GeneratorObject::GeneratorObject(Realm&, Object& prototype, ExecutionContext con { } -ThrowCompletionOr GeneratorObject::initialize(Realm&) -{ - return {}; -} - void GeneratorObject::visit_edges(Cell::Visitor& visitor) { Base::visit_edges(visitor); diff --git a/Userland/Libraries/LibJS/Runtime/GeneratorObject.h b/Userland/Libraries/LibJS/Runtime/GeneratorObject.h index 7686de296d..c4f3ed4155 100644 --- a/Userland/Libraries/LibJS/Runtime/GeneratorObject.h +++ b/Userland/Libraries/LibJS/Runtime/GeneratorObject.h @@ -17,7 +17,6 @@ class GeneratorObject final : public Object { public: static ThrowCompletionOr> create(Realm&, Value, ECMAScriptFunctionObject*, ExecutionContext, Bytecode::RegisterWindow); - virtual ThrowCompletionOr initialize(Realm&) override; virtual ~GeneratorObject() override = default; void visit_edges(Cell::Visitor&) override;