Skip to content

Commit 51c6737

Browse files
committed
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 aeddc36 ("src: remove tracking for exception arrow data"). PR-URL: #17491 Refs: #17394 Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent abc2801 commit 51c6737

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/node_contextify.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ class ContextifyScript : public BaseObject {
629629
MaybeLocal<String> filename = GetFilenameArg(env, options);
630630
MaybeLocal<Integer> lineOffset = GetLineOffsetArg(env, options);
631631
MaybeLocal<Integer> columnOffset = GetColumnOffsetArg(env, options);
632-
Maybe<bool> maybe_display_errors = GetDisplayErrorsArg(env, options);
633632
MaybeLocal<Uint8Array> cached_data_buf = GetCachedData(env, options);
634633
Maybe<bool> maybe_produce_cached_data = GetProduceCachedData(env, options);
635634
MaybeLocal<Context> maybe_context = GetContext(env, options);
@@ -639,7 +638,6 @@ class ContextifyScript : public BaseObject {
639638
return;
640639
}
641640

642-
bool display_errors = maybe_display_errors.ToChecked();
643641
bool produce_cached_data = maybe_produce_cached_data.ToChecked();
644642

645643
ScriptCompiler::CachedData* cached_data = nullptr;

0 commit comments

Comments
 (0)