From 6bd0aff092d64f4cce8744440e74814dd89ba2b9 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 6 Dec 2017 14:10:35 +0100 Subject: [PATCH] src: remove unused variable in node_contextify Currently the following warning is show when building: ../src/node_contextify.cc:642:10: warning: unused variable 'display_errors' [-Wunused-variable] bool display_errors = maybe_display_errors.ToChecked(); This commit removes the unused variable which became unused in commit aeddc3676bc9afe940106d34f30523f27b4cb44f ("src: remove tracking for exception arrow data"). PR-URL: https://github.com/nodejs/node/pull/17491 Refs: https://github.com/nodejs/node/pull/17394 Reviewed-By: Franziska Hinkelmann Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen --- src/node_contextify.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 4d3ea122c8bf49..1f1609e794d145 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -662,7 +662,6 @@ class ContextifyScript : public BaseObject { MaybeLocal filename = GetFilenameArg(env, options); MaybeLocal lineOffset = GetLineOffsetArg(env, options); MaybeLocal columnOffset = GetColumnOffsetArg(env, options); - Maybe maybe_display_errors = GetDisplayErrorsArg(env, options); MaybeLocal cached_data_buf = GetCachedData(env, options); Maybe maybe_produce_cached_data = GetProduceCachedData(env, options); MaybeLocal maybe_context = GetContext(env, options); @@ -672,7 +671,6 @@ class ContextifyScript : public BaseObject { return; } - bool display_errors = maybe_display_errors.ToChecked(); bool produce_cached_data = maybe_produce_cached_data.ToChecked(); ScriptCompiler::CachedData* cached_data = nullptr;