1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +00:00

LibJS: Remove old Native Functions

Now that all the usages were updated to the new ThrowCompletionOr based
version we can remove the legacy version.
This commit is contained in:
Idan Horowitz 2021-10-31 17:10:19 +02:00
parent 9d1fb85f93
commit 2eaed880b1
3 changed files with 0 additions and 44 deletions

View file

@ -6,12 +6,6 @@
#pragma once
#define JS_DECLARE_OLD_NATIVE_FUNCTION(name) \
static JS::Value name(JS::VM&, JS::GlobalObject&)
#define JS_DEFINE_OLD_NATIVE_FUNCTION(name) \
JS::Value name([[maybe_unused]] JS::VM& vm, [[maybe_unused]] JS::GlobalObject& global_object)
#define JS_DECLARE_NATIVE_FUNCTION(name) \
static JS::ThrowCompletionOr<JS::Value> name(JS::VM&, JS::GlobalObject&)