[njs] Removed unused vm->scratch field.

Dmitry Volyntsev xeioex at nginx.com
Fri Jan 18 12:28:32 UTC 2019


details:   https://hg.nginx.org/njs/rev/0813395557b6
branches:  
changeset: 734:0813395557b6
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri Jan 18 15:28:17 2019 +0300
description:
Removed unused vm->scratch field.

diffstat:

 njs/njs_vm.h |  6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diffs (16 lines):

diff -r 1ebf0773c44f -r 0813395557b6 njs/njs_vm.h
--- a/njs/njs_vm.h	Fri Jan 18 14:50:50 2019 +0300
+++ b/njs/njs_vm.h	Fri Jan 18 15:28:17 2019 +0300
@@ -1021,12 +1021,6 @@ struct njs_vm_s {
     /* njs_vm_t must be aligned to njs_value_t due to scratch value. */
     njs_value_t              retval;
 
-    /*
-     * The scratch value is used for lvalue operations on nonexistent
-     * properties of non-object values: "a = 1; a.b++".
-     */
-    njs_value_t              scratch;
-
     u_char                   *current;
 
     njs_value_t              *scopes[NJS_SCOPES];


More information about the nginx-devel mailing list