Skip to content

Commit 6bd0aff

Browse files
danbevMylesBorins
authored andcommitted
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 e276711 commit 6bd0aff

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/node_contextify.cc

-2
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,6 @@ class ContextifyScript : public BaseObject {
662662
MaybeLocal<String> filename = GetFilenameArg(env, options);
663663
MaybeLocal<Integer> lineOffset = GetLineOffsetArg(env, options);
664664
MaybeLocal<Integer> columnOffset = GetColumnOffsetArg(env, options);
665-
Maybe<bool> maybe_display_errors = GetDisplayErrorsArg(env, options);
666665
MaybeLocal<Uint8Array> cached_data_buf = GetCachedData(env, options);
667666
Maybe<bool> maybe_produce_cached_data = GetProduceCachedData(env, options);
668667
MaybeLocal<Context> maybe_context = GetContext(env, options);
@@ -672,7 +671,6 @@ class ContextifyScript : public BaseObject {
672671
return;
673672
}
674673

675-
bool display_errors = maybe_display_errors.ToChecked();
676674
bool produce_cached_data = maybe_produce_cached_data.ToChecked();
677675

678676
ScriptCompiler::CachedData* cached_data = nullptr;

0 commit comments

Comments
 (0)