Skip to content

src: remove unused variable in node_file#18200

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

src: remove unused variable in node_file#18200
danbev wants to merge 1 commit into
nodejs:masterfrom
danbev:node_file_unused_var

Conversation

@danbev

@danbev danbev commented Jan 17, 2018

Copy link
Copy Markdown
Contributor

Currently the following warning is reported when building:

../src/node_file.cc:542:18:
warning: unused variable 'context' [-Wunused-variable]
  Local<Context> context = env->context();
                 ^
../src/node_file.cc:566:18:
warning: unused variable 'context' [-Wunused-variable]
  Local<Context> context = env->context();
                 ^
2 warnings generated.

The commit removes the unused variables.

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

src

Currently the following warning is reported when building:

../src/node_file.cc:542:18:
warning: unused variable 'context' [-Wunused-variable]
  Local<Context> context = env->context();
                 ^
../src/node_file.cc:566:18:
warning: unused variable 'context' [-Wunused-variable]
  Local<Context> context = env->context();
                 ^
2 warnings generated.

The commit removes the unused variables.
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. labels Jan 17, 2018
@danbev

danbev commented Jan 17, 2018

Copy link
Copy Markdown
Contributor Author

@joyeecheung joyeecheung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I think I forgot to remove those in the stats migration PR, sorry...and thanks!

@jasnell

jasnell commented Jan 17, 2018

Copy link
Copy Markdown
Member

Duplicate of #18205 btw ... or I should say #18205 is a duplicate of this one ;)

@joyeecheung joyeecheung added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 17, 2018
@BridgeAR

Copy link
Copy Markdown
Member

@danbev uh, I just landed the other PR first. I am sorry that I missed that this came up first.

I hope it is fine that I close this PR.

@BridgeAR BridgeAR closed this Jan 19, 2018
@danbev danbev deleted the node_file_unused_var branch February 28, 2018 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs 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++. fs Issues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants