From 54ee8cb5dd28e9e72770ee4ab6aa73d700232cb5 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 15 Jun 2018 05:27:32 +0200 Subject: src: remove unused argc var in node_stat_watcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/21337 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- src/node_stat_watcher.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/node_stat_watcher.cc') diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc index d497a0012b..767bc024e4 100644 --- a/src/node_stat_watcher.cc +++ b/src/node_stat_watcher.cc @@ -110,8 +110,6 @@ void StatWatcher::Start(const FunctionCallbackInfo& args) { ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); CHECK(!uv_is_active(wrap->GetHandle())); - const int argc = args.Length(); - node::Utf8Value path(args.GetIsolate(), args[0]); CHECK_NOT_NULL(*path); -- cgit v1.2.3