mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibJS: Remove unused JS_{DECLARE,DEFINE}_NATIVE_{GETTER,SETTER} macros
This commit is contained in:
parent
56e769e4ba
commit
3355b52cca
Notes:
sideshowbarker
2024-07-18 02:08:59 +09:00
Author: https://github.com/IdanHo
Commit: 3355b52cca
Pull-request: https://github.com/SerenityOS/serenity/pull/10543
Reviewed-by: https://github.com/linusg
1 changed files with 0 additions and 12 deletions
|
@ -9,21 +9,9 @@
|
|||
#define JS_DECLARE_NATIVE_FUNCTION(name) \
|
||||
static JS::Value name(JS::VM&, JS::GlobalObject&)
|
||||
|
||||
#define JS_DECLARE_NATIVE_GETTER(name) \
|
||||
static JS::Value name(JS::VM&, JS::GlobalObject&)
|
||||
|
||||
#define JS_DECLARE_NATIVE_SETTER(name) \
|
||||
static void name(JS::VM&, JS::GlobalObject&, JS::Value)
|
||||
|
||||
#define JS_DEFINE_NATIVE_FUNCTION(name) \
|
||||
JS::Value name([[maybe_unused]] JS::VM& vm, [[maybe_unused]] JS::GlobalObject& global_object)
|
||||
|
||||
#define JS_DEFINE_NATIVE_GETTER(name) \
|
||||
JS::Value name([[maybe_unused]] JS::VM& vm, [[maybe_unused]] JS::GlobalObject& global_object)
|
||||
|
||||
#define JS_DEFINE_NATIVE_SETTER(name) \
|
||||
void name([[maybe_unused]] JS::VM& vm, [[maybe_unused]] JS::GlobalObject& global_object, [[maybe_unused]] JS::Value value)
|
||||
|
||||
// NOTE: Proxy is not included here as it doesn't have a prototype - m_proxy_constructor is initialized separately.
|
||||
#define JS_ENUMERATE_NATIVE_OBJECTS_EXCLUDING_TEMPLATES \
|
||||
__JS_ENUMERATE(AggregateError, aggregate_error, AggregateErrorPrototype, AggregateErrorConstructor, void) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue