Skip to content

Commit

Permalink
benchmark,path: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
薛定谔的猫 committed Oct 6, 2017
1 parent fca6c58 commit 76f740e
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 @@ -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 @@ -790,7 +788,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 @@ -1057,7 +1054,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 76f740e

Please sign in to comment.