Skip to content

Commit

Permalink
src: remove unused context variable in node_serdes
Browse files Browse the repository at this point in the history
Currently the following compiler warnings is generated:
../src/node_serdes.cc:400:18:
warning: unused variable 'context' [-Wunused-variable]
  Local<Context> context = ctx->env()->context();
                 ^
1 warning generated.

This commit removes the unused variable.

PR-URL: #24713
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: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
danbev authored and BridgeAR committed Dec 5, 2018
1 parent 10c2773 commit f28fdc9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node_serdes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ void DeserializerContext::ReadUint64(const FunctionCallbackInfo<Value>& args) {
uint32_t lo = static_cast<uint32_t>(value);

Isolate* isolate = ctx->env()->isolate();
Local<Context> context = ctx->env()->context();

Local<Value> ret[] = {
Integer::NewFromUnsigned(isolate, hi),
Expand Down

0 comments on commit f28fdc9

Please sign in to comment.