From 23587b6be54d7dc796036e2d0d9fb2eff335a7c7 Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Sun, 12 Mar 2017 15:28:09 +0100 Subject: [PATCH] net: remove an unused internal module `assertPort` A module `assertPort` in `lib/internal/net.js` is not used anymore. Refs: https://github.com/nodejs/node/pull/11667 --- lib/internal/net.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 };