Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author薛定谔的猫 <zhaoshdm@yonyou.com>2017-10-06 00:17:48 +0300
committerJames M Snell <jasnell@gmail.com>2017-11-23 01:36:38 +0300
commitfbb9eef4c43ecd040e9d83a303dc50c2e252eb9f (patch)
tree73cb40af1f109c02ff259be1d0cb4dee88184246
parent9b2cf1c8ebdf9483aaa1f0d1b6770043c229a354 (diff)
benchmark,path: remove unused variables
PR-URL: https://github.com/nodejs/node/pull/15789 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
-rw-r--r--benchmark/fs/read-stream-throughput.js2
-rw-r--r--lib/path.js4
2 files changed, 1 insertions, 5 deletions
diff --git a/benchmark/fs/read-stream-throughput.js b/benchmark/fs/read-stream-throughput.js
index 85aa3c929fe..162cef6864a 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 580d55f9fc0..e9f76bce997 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) {