diff options
author | Abhishek Raj <raj.abhishek.01.1@gmail.com> | 2017-08-18 10:34:22 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-09-12 04:17:05 +0300 |
commit | 7f1ea7c3afce6104ef15a7d5617124de7008dc7b (patch) | |
tree | 203da35d4c11f9483fbd3835b66d39a89d5a0994 /benchmark | |
parent | daae6bc652cf24c82431497a90fae543ab9e401b (diff) |
benchmark: removed unused arguments from callbacks
Removed unused arguments 'buf' and 'rinfo' from the callbacks.
PR-URL: https://github.com/nodejs/node/pull/14919
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/dgram/multi-buffer.js | 2 | ||||
-rw-r--r-- | benchmark/dgram/offset-length.js | 2 | ||||
-rw-r--r-- | benchmark/dgram/single-buffer.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/dgram/multi-buffer.js b/benchmark/dgram/multi-buffer.js index 6a7fc9bfaf8..a0285c8c59e 100644 --- a/benchmark/dgram/multi-buffer.js +++ b/benchmark/dgram/multi-buffer.js @@ -64,7 +64,7 @@ function server() { }, dur * 1000); }); - socket.on('message', function(buf, rinfo) { + socket.on('message', function() { received++; }); diff --git a/benchmark/dgram/offset-length.js b/benchmark/dgram/offset-length.js index b897707ded5..0445f7b70be 100644 --- a/benchmark/dgram/offset-length.js +++ b/benchmark/dgram/offset-length.js @@ -56,7 +56,7 @@ function server() { }, dur * 1000); }); - socket.on('message', function(buf, rinfo) { + socket.on('message', function() { received++; }); diff --git a/benchmark/dgram/single-buffer.js b/benchmark/dgram/single-buffer.js index 8b81d7fbfc0..e5fcac63f64 100644 --- a/benchmark/dgram/single-buffer.js +++ b/benchmark/dgram/single-buffer.js @@ -56,7 +56,7 @@ function server() { }, dur * 1000); }); - socket.on('message', function(buf, rinfo) { + socket.on('message', function() { received++; }); |