Skip to content

Commit

Permalink
benchmark,path: remove unused variables
Browse files Browse the repository at this point in the history
PR-URL: #15789
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
薛定谔的猫 authored and gibfahn committed Dec 19, 2017
1 parent dab1381 commit 5d6fd0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion benchmark/fs/read-stream-throughput.js
Expand Up @@ -35,7 +35,7 @@ function main(conf) {
throw new Error(`invalid encodingType: ${encodingType}`);
}

makeFile(runTest);
makeFile();
}

function runTest() {
Expand Down
4 changes: 0 additions & 4 deletions lib/path.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -788,7 +786,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) {
Expand Down Expand Up @@ -1056,7 +1053,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) {
Expand Down

0 comments on commit 5d6fd0d

Please sign in to comment.