aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVadim Zhestikov <v.zhestikov@f5.com>2025-06-27 09:45:48 -0700
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>2025-07-03 09:34:25 -0700
commitd63a9d4b1de36c8279f505bc75d13e304726a8ac (patch)
tree95cbfbcd84ef10825b35fb55f67f924a887151f7 /src
parentfe8a0e58d7bafe5a55705b30da5ac9722fa07e17 (diff)
downloadnjs-d63a9d4b1de36c8279f505bc75d13e304726a8ac.tar.gz
njs-d63a9d4b1de36c8279f505bc75d13e304726a8ac.zip
Removed not used njs_scope_create_index_value().
Diffstat (limited to 'src')
-rw-r--r--src/njs_scope.c16
-rw-r--r--src/njs_scope.h1
2 files changed, 0 insertions, 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);