From eee166f24d5cfa447f3a484f0f75acc278091aa8 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 24 Sep 2017 16:54:26 -0400 Subject: [PATCH] src: remove unused variable in node_url.cc PR-URL: https://github.com/nodejs/node/pull/15592 Reviewed-By: Anna Henningsen Reviewed-By: Daniel Bevenius Reviewed-By: Luigi Pinca Reviewed-By: Timothy Gu Reviewed-By: Minwoo Jung Reviewed-By: James M Snell Reviewed-By: Sam Roberts --- src/node_url.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/node_url.cc b/src/node_url.cc index 04254667d6d824..e23c1e6cbf2885 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -1206,8 +1206,6 @@ void URL::Parse(const char* input, while (p <= end) { const char ch = p < end ? p[0] : kEOL; - const size_t remaining = end == p ? 0 : (end - p - 1); - bool special = (url->flags & URL_FLAGS_SPECIAL); bool cannot_be_base; const bool special_back_slash = (special && ch == '\\');