Skip to content
Permalink
Browse files

src: remove unused context variable in node_serdes

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 Trott committed Nov 29, 2018
1 parent 2b1dd6c commit 9c01151e9355602765ee33cf5618b73d5745b25d
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/node_serdes.cc
@@ -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),

0 comments on commit 9c01151

Please sign in to comment.
You can’t perform that action at this time.