From: Vadim Zhestikov Date: Fri, 27 Jun 2025 16:45:48 +0000 (-0700) Subject: Removed not used njs_scope_create_index_value(). X-Git-Tag: 0.9.1~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=d63a9d4b1de36c8279f505bc75d13e304726a8ac;p=njs.git Removed not used njs_scope_create_index_value(). --- diff --git a/src/njs_scope.c b/src/njs_scope.c index 304e4e33..b95d3979 100644 --- a/src/njs_scope.c +++ b/src/njs_scope.c @@ -25,22 +25,6 @@ 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 *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) { diff --git a/src/njs_scope.h b/src/njs_scope.h index 16a47d98..32e44c6c 100644 --- a/src/njs_scope.h +++ b/src/njs_scope.h @@ -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);