Skip to content

Commit dd682ce

Browse files
committed
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: #25784 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent b897704 commit dd682ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/env.h

-2
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,6 @@ class Environment {
517517
inline AsyncHooks();
518518
// Keep a list of all Persistent strings used for Provider types.
519519
v8::Eternal<v8::String> providers_[AsyncWrap::PROVIDERS_LENGTH];
520-
// Keep track of the environment copy itself.
521-
Environment* env_;
522520
// Stores the ids of the current execution context stack.
523521
AliasedBuffer<double, v8::Float64Array> async_ids_stack_;
524522
// Attached to a Uint32Array that tracks the number of active hooks for

0 commit comments

Comments
 (0)