mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
LibWeb/Bindings: Remove now unused REPLACEABLE_PROPERTY_SETTER() macro
This commit is contained in:
parent
351e5ca917
commit
d4d49e00a2
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* 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<ObjectType>(this_value.as_object())) \
|
||||
return vm.throw_completion<JS::TypeError>(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();
|
|
@ -21,7 +21,6 @@
|
|||
#include <LibTextCodec/Decoder.h>
|
||||
#include <LibWeb/Bindings/CSSNamespace.h>
|
||||
#include <LibWeb/Bindings/ExceptionOrUtils.h>
|
||||
#include <LibWeb/Bindings/Replaceable.h>
|
||||
#include <LibWeb/Bindings/WindowExposedInterfaces.h>
|
||||
#include <LibWeb/Bindings/WindowPrototype.h>
|
||||
#include <LibWeb/CSS/MediaQueryList.h>
|
||||
|
|
Loading…
Reference in a new issue