Skip to content

Commit 78ad4e9

Browse files
danbevtargos
authored andcommitted
src: remove unused argc var in node_stat_watcher
Currently the following compiler warning is reported: ../src/node_stat_watcher.cc:113:13: warning: unused variable 'argc' [-Wunused-variable] const int argc = args.Length(); ^ 1 warning generated. This commit removes the unused argc variable. PR-URL: #21337 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent bcaf59c commit 78ad4e9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/node_stat_watcher.cc

-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ void StatWatcher::Start(const FunctionCallbackInfo<Value>& args) {
110110
ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
111111
CHECK(!uv_is_active(wrap->GetHandle()));
112112

113-
const int argc = args.Length();
114-
115113
node::Utf8Value path(args.GetIsolate(), args[0]);
116114
CHECK_NOT_NULL(*path);
117115

0 commit comments

Comments
 (0)