From ee84fc333d2fde8d2d9a3a272f0675b2da4eb10e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Fri, 6 Oct 2017 05:17:48 +0800 Subject: [PATCH] benchmark,path: remove unused variables PR-URL: https://github.com/nodejs/node/pull/15789 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- benchmark/fs/read-stream-throughput.js | 2 +- lib/path.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/benchmark/fs/read-stream-throughput.js b/benchmark/fs/read-stream-throughput.js index 85aa3c929feb83..162cef6864a686 100644 --- a/benchmark/fs/read-stream-throughput.js +++ b/benchmark/fs/read-stream-throughput.js @@ -35,7 +35,7 @@ function main(conf) { throw new Error(`invalid encodingType: ${encodingType}`); } - makeFile(runTest); + makeFile(); } function runTest() { diff --git a/lib/path.js b/lib/path.js index 580d55f9fc0018..e9f76bce9973c5 100644 --- a/lib/path.js +++ b/lib/path.js @@ -290,7 +290,6 @@ const win32 = { (code >= 97/*a*/ && code <= 122/*z*/)) { // Possible device root - code = path.charCodeAt(1); if (path.charCodeAt(1) === 58/*:*/) { device = path.slice(0, 2); rootEnd = 2; @@ -412,7 +411,6 @@ const win32 = { (code >= 97/*a*/ && code <= 122/*z*/)) { // Possible device root - code = path.charCodeAt(1); if (path.charCodeAt(1) === 58/*:*/) { device = path.slice(0, 2); rootEnd = 2; @@ -787,7 +785,6 @@ const win32 = { (code >= 97/*a*/ && code <= 122/*z*/)) { // Possible device root - code = path.charCodeAt(1); if (path.charCodeAt(1) === 58/*:*/) { rootEnd = offset = 2; if (len > 2) { @@ -1054,7 +1051,6 @@ const win32 = { (code >= 97/*a*/ && code <= 122/*z*/)) { // Possible device root - code = path.charCodeAt(1); if (path.charCodeAt(1) === 58/*:*/) { rootEnd = 2; if (len > 2) {