GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — timers: remove dead code and simplify args check by BridgeAR · Pull Request #26555 · nodejs/node

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Mar 10, 2019

Copy link
Copy Markdown
Member

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.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@BridgeAR
timers: remove dead code and simplify args check
816f633
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.
@nodejs-github-bot

nodejs-github-bot commented Mar 10, 2019

Copy link
Copy Markdown
Collaborator

@BridgeAR build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/2842/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added the timers Issues and PRs related to timers, setImmediate(), setInterval(), and setTimeout(). label Mar 10, 2019
@BridgeAR
BridgeAR requested review from Fishrock123, addaleax and apapirovski March 10, 2019 13:29
@BridgeAR

BridgeAR commented Mar 10, 2019

Copy link
Copy Markdown
Member Author

CI https://ci.nodejs.org/job/node-test-pull-request/21392/

@nodejs/timers PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis
bnoordhuis approved these changes Mar 11, 2019
View reviewed changes
@BridgeAR BridgeAR added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Mar 12, 2019
@BridgeAR

BridgeAR commented Mar 13, 2019

Copy link
Copy Markdown
Member Author

It would be nice to get another review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tniessen
tniessen approved these changes Mar 13, 2019
View reviewed changes
@BridgeAR

BridgeAR commented Mar 13, 2019

Copy link
Copy Markdown
Member Author

Landed in a2bed79 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR closed this Mar 13, 2019
BridgeAR added a commit to BridgeAR/node that referenced this pull request Mar 13, 2019
@BridgeAR
timers: remove dead code and simplify args check
a2bed79
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.

PR-URL: nodejs#26555
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
BridgeAR added a commit that referenced this pull request Mar 14, 2019
@BridgeAR
timers: remove dead code and simplify args check
1c9485a
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.

PR-URL: #26555
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
@BridgeAR BridgeAR mentioned this pull request Mar 14, 2019
2019-03-14, Version 11.12.0 (Current) #26644
Merged
BridgeAR added a commit to BridgeAR/node that referenced this pull request Mar 14, 2019
@BridgeAR
timers: remove dead code and simplify args check
ea2b5c4
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.

PR-URL: nodejs#26555
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
BridgeAR added a commit that referenced this pull request Mar 14, 2019
@BridgeAR
timers: remove dead code and simplify args check
143dbb3
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.

PR-URL: #26555
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
@BridgeAR BridgeAR mentioned this pull request Jul 5, 2019
lib: remove unnecessary bind #28131
Closed
2 of 4 tasks
@BridgeAR
BridgeAR deleted the remove-dead-timers-code branch January 20, 2020 11:55
@kissofire kissofire mentioned this pull request Mar 7, 2021
[Snyk] Fix for 1 vulnerabilities kissofire/node#28
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Mar 7, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 aliceUnhinged613/node#19
Open
@ron-a20 ron-a20 mentioned this pull request Mar 8, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 ron-a20/node#26
Open
@sitedata sitedata mentioned this pull request Mar 8, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 sitedata/node#18
Open
@meghasfdc meghasfdc mentioned this pull request Mar 8, 2021
[Snyk] Fix for 1 vulnerabilities meghasfdc/node#28
Open
@137717unity 137717unity mentioned this pull request Mar 8, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 137717unity/node#19
Open
@Rednickle Rednickle mentioned this pull request Mar 8, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#15
Open
This was referenced Mar 11, 2021
[Snyk] Fix for 6 vulnerabilities Dmarch28/node#8
Open
[Snyk] Fix for 6 vulnerabilities Dmarch28/node#9
Open
This was referenced May 25, 2021
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#21
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#22
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.2.13 to 2.6.31 kissofire/node#35
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 sitedata/node#25
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.2.13 to 2.6.31 meghasfdc/node#35
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 ron-a20/node#33
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 baby636/node#10
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#22
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 aliceUnhinged613/node#25
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 137717unity/node#26
Open
This was referenced Apr 7, 2022
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 ron-a20/node#61
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 Rednickle/node-1#47
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 137717unity/node#52
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 aliceUnhinged613/node#53
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 Dmarch28/node#54
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.6.24 to 2.6.31 baby636/node#49
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 molllyn1/node#43
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 wedataintelligence/node#28
Open
[Snyk] Security upgrade gatsby-plugin-sharp from 2.3.10 to 2.6.31 turkdevops/node#364
Closed
@snyk-bot snyk-bot mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#89
Open
@wedataintelligence wedataintelligence mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#73
Open
@snyk-bot snyk-bot mentioned this pull request Jan 30, 2023
[Snyk] Fix for 1 vulnerabilities kissofire/node#94
Open
@molllyn1 molllyn1 mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities molllyn1/node#76
Open
@snyk-bot snyk-bot mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities 137717unity/node#93
Open
@baby636 baby636 mentioned this pull request Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities baby636/node#88
Open
This was referenced Jan 31, 2023
[Snyk] Fix for 1 vulnerabilities ron-a20/node#93
Open
[Snyk] Fix for 1 vulnerabilities Rednickle/node-1#70
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bnoordhuis bnoordhuis bnoordhuis approved these changes
@tniessen tniessen tniessen approved these changes
@apapirovski apapirovski Awaiting requested review from apapirovski
@Fishrock123 Fishrock123 Awaiting requested review from Fishrock123
@addaleax addaleax Awaiting requested review from addaleax

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. timers Issues and PRs related to timers, setImmediate(), setInterval(), and setTimeout().

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@BridgeAR @nodejs-github-bot @bnoordhuis @tniessen
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.