summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
author薛定谔的猫 <zhaoshdm@yonyou.com>2017-10-06 05:17:48 +0800
committerJames M Snell <jasnell@gmail.com>2017-11-22 14:36:38 -0800
commitfbb9eef4c43ecd040e9d83a303dc50c2e252eb9f (patch)
tree73cb40af1f109c02ff259be1d0cb4dee88184246 /lib
parent9b2cf1c8ebdf9483aaa1f0d1b6770043c229a354 (diff)
downloadandroid-node-v8-fbb9eef4c43ecd040e9d83a303dc50c2e252eb9f.tar.gz
android-node-v8-fbb9eef4c43ecd040e9d83a303dc50c2e252eb9f.tar.bz2
android-node-v8-fbb9eef4c43ecd040e9d83a303dc50c2e252eb9f.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/path.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/path.js b/lib/path.js
index 580d55f9fc..e9f76bce99 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) {