Skip to content

src: remove unused variables node_util.cc - #24717

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

src: remove unused variables node_util.cc#24717
danbev wants to merge 1 commit into
nodejs:masterfrom
danbev:node_util_warning

Conversation

@danbev

Copy link
Copy Markdown
Contributor

Currently the following warnings are generated:

../src/node_util.cc:59:16: warning: unused variable 'env' [-Wunused-variable] Environment* env = Environment::GetCurrent(args); ^../src/node_util.cc:78:16: warning: unused variable 'env' [-Wunused-variable] Environment* env = Environment::GetCurrent(args); ^2 warnings generated.

This commit removes these unused variables.

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

Currently the following warnings are generated:
../src/node_util.cc:59:16: warning: unused variable 'env' [-Wunused-variable]
Environment* env = Environment::GetCurrent(args);
^
../src/node_util.cc:78:16: warning: unused variable 'env' [-Wunused-variable]
Environment* env = Environment::GetCurrent(args);
^
2 warnings generated.
This commit removes these unused variables.
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. util Issues and PRs related to the built-in util module. labels Nov 29, 2018
@Trott

Copy link
Copy Markdown
Member

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 29, 2018
@Trott

Copy link
Copy Markdown
Member

Collaborators, 👍 to fast-track.

@TrottTrott added the fast-track PRs that do not need to wait for 48 hours to land. label Nov 29, 2018
@lpinca

Copy link
Copy Markdown
Member

I think there is a typo in commit title (missing "in").

@Trott

Copy link
Copy Markdown
Member

Landed in 171b810

@TrottTrott closed this Nov 30, 2018
Trott pushed a commit to Trott/io.js that referenced this pull request Nov 30, 2018
Currently two warnings are generated regarding unused variables.
This commit removes the unused variables.
PR-URL: nodejs#24717
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@danbev
danbev deleted the node_util_warning branch December 4, 2018 04:24
BridgeAR pushed a commit that referenced this pull request Dec 5, 2018
Currently two warnings are generated regarding unused variables.
This commit removes the unused variables.
PR-URL: #24717
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@BridgeARBridgeAR mentioned this pull request Dec 5, 2018
4 tasks
refack pushed a commit to refack/node that referenced this pull request Jan 14, 2019
Currently two warnings are generated regarding unused variables.
This commit removes the unused variables.
PR-URL: nodejs#24717
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.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.utilIssues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@danbev@nodejs-github-bot@Trott@lpinca@cjihrig@maclover7@joyeecheung@richardlau@BethGriggs