projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f28f67c
)
url: remove unused global variable
author
Ben Noordhuis
<info@bnoordhuis.nl>
Tue, 21 May 2013 21:04:58 +0000
(23:04 +0200)
committer
isaacs
<i@izs.me>
Tue, 4 Jun 2013 18:43:42 +0000
(11:43 -0700)
lib/url.js
patch
|
blob
|
history
diff --git
a/lib/url.js
b/lib/url.js
index fc8f77d1bdd8a7f0f4727dd4b4e1cea8189c5675..bacf201dd6ea69aee578519837999d10d40e47b3 100644
(file)
--- a/
lib/url.js
+++ b/
lib/url.js
@@
-79,18
+79,6
@@
var protocolPattern = /^([a-z0-9.+-]+:)/i,
'javascript': true,
'javascript:': true
},
- // protocols that always have a path component.
- pathedProtocol = {
- 'http': true,
- 'https': true,
- 'ftp': true,
- 'gopher': true,
- 'file': true,
- 'http:': true,
- 'ftp:': true,
- 'gopher:': true,
- 'file:': true
- },
// protocols that always contain a // bit.
slashedProtocol = {
'http': true,