From dd682cef29b5c44b0d1ef20df97d36a0e4615ce9 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 29 Jan 2019 05:37:00 +0100 Subject: [PATCH] src: remove unused env_ field from env.h Currently the following compiler warnings is generated: In file included from ../src/env-inl.h:28: ../src/env.h:521:18: warning: private field 'env_' is not used [-Wunused-private-field] Environment* env_; ^ 1 warning generated. This commit removes this unused field. PR-URL: https://github.com/nodejs/node/pull/25784 Reviewed-By: Richard Lau Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Joyee Cheung Reviewed-By: Refael Ackermann --- src/env.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/env.h b/src/env.h index 0d44c774184..2fab688fc83 100644 --- a/src/env.h +++ b/src/env.h @@ -517,8 +517,6 @@ class Environment { inline AsyncHooks(); // Keep a list of all Persistent strings used for Provider types. v8::Eternal providers_[AsyncWrap::PROVIDERS_LENGTH]; - // Keep track of the environment copy itself. - Environment* env_; // Stores the ids of the current execution context stack. AliasedBuffer async_ids_stack_; // Attached to a Uint32Array that tracks the number of active hooks for