From 6f7dfda6098549eb46d93e36c536dfc1fb651e47 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Fri, 15 Nov 2019 15:10:38 -0800 Subject: [PATCH] [njs] Fix broken build. (#3036) --- projects/njs/njs_process_script_fuzzer.c | 47 ------------------------ 1 file changed, 47 deletions(-) diff --git a/projects/njs/njs_process_script_fuzzer.c b/projects/njs/njs_process_script_fuzzer.c index fa3e61116..09938b99c 100644 --- a/projects/njs/njs_process_script_fuzzer.c +++ b/projects/njs/njs_process_script_fuzzer.c @@ -18,8 +18,6 @@ #include #include -#include - // The vast majority of the code was copied from njs/njs_shell.c. typedef struct { @@ -82,8 +80,6 @@ static njs_int_t njs_ext_console_log(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused); static njs_int_t njs_ext_console_dump(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused); -static njs_int_t njs_ext_console_help(njs_vm_t *vm, njs_value_t *args, - njs_uint_t nargs, njs_index_t unused); static njs_int_t njs_ext_console_time(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused); static njs_int_t njs_ext_console_time_end(njs_vm_t *vm, njs_value_t *args, @@ -125,18 +121,6 @@ static njs_external_t njs_ext_console[] = { njs_ext_console_dump, 0 }, - { njs_str("help"), - NJS_EXTERN_METHOD, - NULL, - 0, - NULL, - NULL, - NULL, - NULL, - NULL, - njs_ext_console_help, - 0 }, - { njs_str("time"), NJS_EXTERN_METHOD, NULL, @@ -471,37 +455,6 @@ njs_ext_console_dump(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, } -static njs_int_t -njs_ext_console_help(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, - njs_index_t unused) -{ - const njs_object_init_t *obj, **objpp; - - njs_printf("VM built-in objects:\n"); - - for (objpp = njs_constructor_init; *objpp != NULL; objpp++) { - obj = *objpp; - - njs_printf(" %V\n", &obj->name); - } - - for (objpp = njs_object_init; *objpp != NULL; objpp++) { - obj = *objpp; - - njs_printf(" %V\n", &obj->name); - } - - njs_printf("\nEmbedded objects:\n"); - njs_printf(" console\n"); - - njs_printf("\n"); - - vm->retval = njs_value_undefined; - - return NJS_OK; -} - - static njs_int_t njs_ext_console_time(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused)