diff options
author | Daijiro Wachi <daijiro.wachi@gmail.com> | 2017-03-14 18:51:36 +0100 |
---|---|---|
committer | Daijiro Wachi <daijiro.wachi@gmail.com> | 2017-03-14 18:51:36 +0100 |
commit | 879d6663eafdfd6e07111e7a38652cadbb1d17bd (patch) | |
tree | 1fcbfc8330ddcb3f7c8f0c18cfdf5f0bb0231e95 /lib | |
parent | d3418b13190d142112270dcacf33d5542170729d (diff) | |
download | android-node-v8-879d6663eafdfd6e07111e7a38652cadbb1d17bd.tar.gz android-node-v8-879d6663eafdfd6e07111e7a38652cadbb1d17bd.tar.bz2 android-node-v8-879d6663eafdfd6e07111e7a38652cadbb1d17bd.zip |
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
PR-URL: https://github.com/nodejs/node/pull/11812
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/net.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/internal/net.js b/lib/internal/net.js index 8f279cad16..ce8f549bdf 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 }; |