details:   
https://github.com/nginx/njs/commit/d63a9d4b1de36c8279f505bc75d13e304726a8ac
branches:  master
commit:    d63a9d4b1de36c8279f505bc75d13e304726a8ac
user:      Vadim Zhestikov <v.zhesti...@f5.com>
date:      Fri, 27 Jun 2025 09:45:48 -0700
description:
Removed not used njs_scope_create_index_value().


---
 src/njs_scope.c | 16 ----------------
 src/njs_scope.h |  1 -
 2 files changed, 17 deletions(-)

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);
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to