Mercurial > njs
changeset 2589:579688a17e37
Removed not used njs_scope_create_index_value().
| author | Vadim Zhestikov <v.zhestikov@f5.com> |
|---|---|
| date | Fri, 27 Jun 2025 09:45:48 -0700 |
| parents | 2f884aca1644 |
| children | a4061187dd87 |
| files | src/njs_scope.c src/njs_scope.h |
| diffstat | 2 files changed, 0 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/src/njs_scope.c Mon Jun 16 14:33:05 2025 -0700 +++ b/src/njs_scope.c Fri Jun 27 09:45:48 2025 -0700 @@ -25,22 +25,6 @@ } -njs_value_t * -njs_scope_create_index_value(njs_vm_t *vm, njs_index_t index) -{ - njs_value_t *value; - - value = njs_mp_alloc(vm->mem_pool, sizeof(njs_value_t)); - if (njs_slow_path(value == NULL)) { - return NULL; - } - - njs_scope_value_set(vm, index, value); - - return value; -} - - njs_value_t ** njs_scope_make(njs_vm_t *vm, uint32_t count) {
--- a/src/njs_scope.h Mon Jun 16 14:33:05 2025 -0700 +++ b/src/njs_scope.h Fri Jun 27 09:45:48 2025 -0700 @@ -27,7 +27,6 @@ njs_index_t njs_scope_temp_index(njs_parser_scope_t *scope); -njs_value_t *njs_scope_create_index_value(njs_vm_t *vm, njs_index_t index); njs_value_t **njs_scope_make(njs_vm_t *vm, uint32_t count); njs_index_t njs_scope_global_index(njs_vm_t *vm, const njs_value_t *src, njs_uint_t runtime);
