summaryrefslogtreecommitdiff
path: root/src/node_stat_watcher.cc
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-06-15 05:27:32 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-06-17 06:57:39 +0200
commit54ee8cb5dd28e9e72770ee4ab6aa73d700232cb5 (patch)
tree149f8db97317e4bad290690ad224e294c841e693 /src/node_stat_watcher.cc
parent1e54c241322c0f65c569bc20529e2275ec361428 (diff)
downloadandroid-node-v8-54ee8cb5dd28e9e72770ee4ab6aa73d700232cb5.tar.gz
android-node-v8-54ee8cb5dd28e9e72770ee4ab6aa73d700232cb5.tar.bz2
android-node-v8-54ee8cb5dd28e9e72770ee4ab6aa73d700232cb5.zip
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: https://github.com/nodejs/node/pull/21337 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_stat_watcher.cc')
-rw-r--r--src/node_stat_watcher.cc2
1 files changed, 0 insertions, 2 deletions
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<Value>& 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);