[njs] Removed unused njs_global_variable_value().

Dmitry Volyntsev xeioex at nginx.com
Thu Aug 1 13:41:59 UTC 2019


details:   https://hg.nginx.org/njs/rev/cd56dad88801
branches:  
changeset: 1088:cd56dad88801
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu Aug 01 16:41:36 2019 +0300
description:
Removed unused njs_global_variable_value().

diffstat:

 src/njs_variable.h |  5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diffs (15 lines):

diff -r f4ac8168e856 -r cd56dad88801 src/njs_variable.h
--- a/src/njs_variable.h	Tue Jul 30 21:12:08 2019 +0300
+++ b/src/njs_variable.h	Thu Aug 01 16:41:36 2019 +0300
@@ -31,11 +31,6 @@ typedef struct {
 } njs_variable_t;
 
 
-#define njs_global_variable_value(vm, var)                                    \
-    (njs_value_t *) ((u_char *) vm->global_scope                              \
-         + njs_scope_offset((var)->index) - NJS_INDEX_GLOBAL_OFFSET)
-
-
 typedef enum {
     NJS_DECLARATION = 0,
     NJS_REFERENCE,


More information about the nginx-devel mailing list