[njs] Fix broken build. (#3036)

This commit is contained in:
Max Moroz 2019-11-15 15:10:38 -08:00 committed by GitHub
parent 6ea69ad37d
commit 6f7dfda609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 47 deletions

View File

@ -18,8 +18,6 @@
#include <njs_main.h>
#include <njs_value.h>
#include <njs_builtin.h>
// 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)