diff --git a/lib/internal/url.js b/lib/internal/url.js index 679e14d72a9c39..c976e950076eaf 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -1046,7 +1046,6 @@ function urlToOptions(url) { exports.URL = URL; exports.URLSearchParams = URLSearchParams; -exports.originFor = originFor; exports.domainToASCII = domainToASCII; exports.domainToUnicode = domainToUnicode; exports.encodeAuth = encodeAuth; diff --git a/lib/url.js b/lib/url.js index 933ffe13b4d9e4..2f05cc6648ab48 100644 --- a/lib/url.js +++ b/lib/url.js @@ -18,7 +18,6 @@ exports.resolveObject = urlResolveObject; exports.format = urlFormat; exports.URL = internalUrl.URL; exports.URLSearchParams = internalUrl.URLSearchParams; -exports.originFor = internalUrl.originFor; exports.domainToASCII = internalUrl.domainToASCII; exports.domainToUnicode = internalUrl.domainToUnicode; diff --git a/test/parallel/test-util-inspect-tuple-origin.js b/test/parallel/test-util-inspect-tuple-origin.js deleted file mode 100644 index 743651098f60db..00000000000000 --- a/test/parallel/test-util-inspect-tuple-origin.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -require('../common'); -const assert = require('assert'); -const inspect = require('util').inspect; -const originFor = require('url').originFor; - -assert.strictEqual( - inspect(originFor('http://test.com:8000')), - `TupleOrigin { - scheme: http, - host: test.com, - port: 8000, - domain: null - }` - ); - -assert.strictEqual( - inspect(originFor('http://test.com')), - `TupleOrigin { - scheme: http, - host: test.com, - port: undefined, - domain: null - }` - ); - - -assert.strictEqual( - inspect(originFor('https://test.com')), - `TupleOrigin { - scheme: https, - host: test.com, - port: undefined, - domain: null - }` - );