diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-19 20:15:23 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 3355b52cca1e1a8478ea5dbbd193120af4c83ca6 (patch) | |
tree | 4f8719162c457cccccef518386a997ac7a369c69 | |
parent | 56e769e4ba0cc63684930dda6df8ab6fe5c98b33 (diff) | |
download | serenity-3355b52cca1e1a8478ea5dbbd193120af4c83ca6.zip |
LibJS: Remove unused JS_{DECLARE,DEFINE}_NATIVE_{GETTER,SETTER} macros
-rw-r--r-- | Userland/Libraries/LibJS/Forward.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Userland/Libraries/LibJS/Forward.h b/Userland/Libraries/LibJS/Forward.h index a17b4c43a8..76249f8eae 100644 --- a/Userland/Libraries/LibJS/Forward.h +++ b/Userland/Libraries/LibJS/Forward.h @@ -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) \ |