timers: remove dead code and simplify args check by BridgeAR · Pull Request #26555 · nodejs/node
The `setUnrefTimeout` function is never called with more arguments than two. So quite some code was dead and never used. This removes that code and simplifies the args check not to coerce objects to booleans.
added
the
timers
label
Mar 10, 2019
BridgeAR
added
the
author ready
label
Mar 12, 2019BridgeAR added a commit to BridgeAR/node that referenced this pull request
Mar 13, 2019The `setUnrefTimeout` function is never called with more arguments than two. So quite some code was dead and never used. This removes that code and simplifies the args check not to coerce objects to booleans. PR-URL: nodejs#26555 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
BridgeAR added a commit that referenced this pull request
Mar 14, 2019The `setUnrefTimeout` function is never called with more arguments than two. So quite some code was dead and never used. This removes that code and simplifies the args check not to coerce objects to booleans. PR-URL: #26555 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
BridgeAR added a commit to BridgeAR/node that referenced this pull request
Mar 14, 2019The `setUnrefTimeout` function is never called with more arguments than two. So quite some code was dead and never used. This removes that code and simplifies the args check not to coerce objects to booleans. PR-URL: nodejs#26555 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
BridgeAR added a commit that referenced this pull request
Mar 14, 2019The `setUnrefTimeout` function is never called with more arguments than two. So quite some code was dead and never used. This removes that code and simplifies the args check not to coerce objects to booleans. PR-URL: #26555 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
BridgeAR
deleted the
remove-dead-timers-code
branch
This was referenced
Mar 11, 2021This was referenced
May 25, 2021This was referenced
Apr 7, 2022This was referenced
Jan 31, 2023This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters