diff --git a/lib/internal/net.js b/lib/internal/net.js index 8f279cad1608f5..ce8f549bdfa613 100644 --- a/lib/internal/net.js +++ b/lib/internal/net.js @@ -9,13 +9,6 @@ function isLegalPort(port) { return +port === (+port >>> 0) && port <= 0xFFFF; } - -function assertPort(port) { - if (typeof port !== 'undefined' && !isLegalPort(port)) - throw new RangeError('"port" argument must be >= 0 and < 65536'); -} - module.exports = { - isLegalPort, - assertPort + isLegalPort };