-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: remove defunct timer_wrap file #21777
Conversation
(Tagging as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if it’s not in node.gyp
it can be removed :)
And it doesn’t have to be semver-major. We usually call those commits out explicitly in the change log as API changes, but this PR doesn’t really affect our visible API behaviour.
Unused since the excellent refactoring in 2930bd1, which also removed `src/timer_wrap.cc` from `node.gyp`. If you try and get at the binding on a v11.0-pre build, you'll get an error, since the file is no longer in the GYP build. ``` Jonathans-MBP:node jon$ ./node -v v11.0.0-pre Jonathans-MBP:node jon$ ./node -e "process.binding('timer_wrap')" internal/bootstrap/loaders.js:81 mod = bindingObj[module] = getBinding(module); ^ Error: No such module: timer_wrap at process.binding (internal/bootstrap/loaders.js:81:36) at [eval]:1:9 at Script.runInThisContext (vm.js:89:20) at Object.runInThisContext (vm.js:286:38) at Object.<anonymous> ([eval]-wrapper:6:22) at Module._compile (internal/modules/cjs/loader.js:689:30) at evalScript (internal/bootstrap/node.js:562:27) at startup (internal/bootstrap/node.js:248:9) at bootstrapNodeJSCore (internal/bootstrap/node.js:595:3) ``` Refs: nodejs#20894
662f26f
to
8658963
Compare
Rebased, CI: https://ci.nodejs.org/job/node-test-pull-request/15879/ EDIT by @maclover7: OSX failure is known flake (#21724), rebuilding Windows due to infrastructure failure: https://ci.nodejs.org/job/node-test-commit-windows-fanned/19306/ EDIT 2 by @maclover7: "Rebuilt" node-test-commit at https://ci.nodejs.org/job/node-test-commit/19804/ is all green, landing |
Landed in 2faab11 |
Unused since the excellent refactoring in 2930bd, which also removed `src/timer_wrap.cc` from `node.gyp`. If you try and get at the binding on a v11.0-pre build, you'll get an error, since the file is no longer in the GYP build. ``` Jonathans-MBP:node jon$ ./node -v v11.0.0-pre Jonathans-MBP:node jon$ ./node -e "process.binding('timer_wrap')" internal/bootstrap/loaders.js:81 mod = bindingObj[module] = getBinding(module); ^ Error: No such module: timer_wrap at process.binding (internal/bootstrap/loaders.js:81:36) at [eval]:1:9 at Script.runInThisContext (vm.js:89:20) at Object.runInThisContext (vm.js:286:38) at Object.<anonymous> ([eval]-wrapper:6:22) at Module._compile (internal/modules/cjs/loader.js:689:30) at evalScript (internal/bootstrap/node.js:562:27) at startup (internal/bootstrap/node.js:248:9) at bootstrapNodeJSCore (internal/bootstrap/node.js:595:3) ``` PR-URL: #21777 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Refs: #20894
Thanks @maclover7. If anyone's curious: what happened here is that git lost track of the fact that timers.cc and timer_wrap.cc were the same file because they completely diverged after the removal of the license header. I missed that when landing. |
Unused since the excellent refactoring in 2930bd1,
which also removed
src/timer_wrap.cc
fromnode.gyp
. If you try andget at the binding on a v11.0-pre build, you'll get an error, since the
file is no longer in the GYP build. I believe this file can be removed now, but please let me know if I missed something :)
cc @apapirovski
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes