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 MylesBorins committed Dec 20, 2017
1 parent dbf5ddb commit b1b9753
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
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(conf) {
throw new Error('invalid type');
}

makeFile(runTest);
makeFile();
}

function runTest() {
Expand Down
4 changes: 0 additions & 4 deletions lib/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,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 @@ -391,7 +390,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 @@ -769,7 +767,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 @@ -1037,7 +1034,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 b1b9753

Please sign in to comment.