From d4d49e00a2791e8131bb2e738efcbfc97827348b Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 7 Mar 2023 18:58:02 +0000 Subject: [PATCH] LibWeb/Bindings: Remove now unused REPLACEABLE_PROPERTY_SETTER() macro --- Userland/Libraries/LibWeb/Bindings/Replaceable.h | 15 --------------- Userland/Libraries/LibWeb/HTML/Window.cpp | 1 - 2 files changed, 16 deletions(-) delete mode 100644 Userland/Libraries/LibWeb/Bindings/Replaceable.h diff --git a/Userland/Libraries/LibWeb/Bindings/Replaceable.h b/Userland/Libraries/LibWeb/Bindings/Replaceable.h deleted file mode 100644 index 6ed3883935..0000000000 --- a/Userland/Libraries/LibWeb/Bindings/Replaceable.h +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) 2021-2022, Linus Groh - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#define REPLACEABLE_PROPERTY_SETTER(ObjectType, property) \ - auto this_value = vm.this_value(); \ - if (!this_value.is_object() || !is(this_value.as_object())) \ - return vm.throw_completion(JS::ErrorType::NotAnObjectOfType, #ObjectType); \ - TRY(this_value.as_object().internal_define_own_property( \ - #property, JS::PropertyDescriptor { .value = vm.argument(0), .writable = true })); \ - return JS::js_undefined(); diff --git a/Userland/Libraries/LibWeb/HTML/Window.cpp b/Userland/Libraries/LibWeb/HTML/Window.cpp index 69fe5aa1c0..30db5318f2 100644 --- a/Userland/Libraries/LibWeb/HTML/Window.cpp +++ b/Userland/Libraries/LibWeb/HTML/Window.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include