Skip to content

src: remove unused env_ field from env.h - #25784

Closed
danbev wants to merge 1 commit into
nodejs:masterfrom
danbev:env_unused_var
Closed

src: remove unused env_ field from env.h#25784
danbev wants to merge 1 commit into
nodejs:masterfrom
danbev:env_unused_var

Conversation

@danbev

Copy link
Copy Markdown
Contributor

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.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

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.
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jan 29, 2019
@danbev

Copy link
Copy Markdown
ContributorAuthor

@danbev

danbev commented Jan 29, 2019

Copy link
Copy Markdown
ContributorAuthor

Re-run of failing node-test-commit-linux (✔️)

@danbevdanbev added the fast-track PRs that do not need to wait for 48 hours to land. label Jan 29, 2019
@danbev

Copy link
Copy Markdown
ContributorAuthor

Please give a 👍 if you think this can be fast-tracked, or if you disagree please remove the fast-track label.

@refack

refack commented Jan 30, 2019

Copy link
Copy Markdown
Contributor

@danbevdanbev changed the title src: removed unused env_ field from env.hsrc: remove unused env_ field from env.hJan 30, 2019
danbev added a commit that referenced this pull request Jan 30, 2019
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>
@danbev

Copy link
Copy Markdown
ContributorAuthor

Landed in dd682ce.

@refack Thanks for running CI! It was run and then I only re-ran the failing one, so I think this PR is fully covered by CI even though the UI was/is marked as red.

@danbevdanbev closed this Jan 30, 2019
@danbev
danbev deleted the env_unused_var branch January 30, 2019 04:25
targos pushed a commit that referenced this pull request Jan 30, 2019
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>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.fast-trackPRs that do not need to wait for 48 hours to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@danbev@nodejs-github-bot@refack@jasnell@addaleax@joyeecheung@richardlau