Uh oh!
There was an error while loading. Please reload this page.
lib: remove unused modules - #4396
Conversation
Some files in `lib` were using `require` to load modules that were subsequently not used in the file. This removes those `require` statements.
jbergstroem
commented
Dec 23, 2015
Trott
commented
Dec 23, 2015
ppcle-ubuntu1404 failure looks like Jenkins/build problem. |
Trott
commented
Dec 23, 2015
CI looks good other than aforementioned ppcle-ubuntu1404 issue that seems unrelated. |
jbergstroem
commented
Dec 23, 2015
It's 99.999% my bad; currently rewriting init scripts in upstart so they respawn if they go down. Not sure why the Edit: |
bnoordhuis
commented
Dec 23, 2015
LGTM |
cjihrig
commented
Dec 23, 2015
LGTM. Any reason we aren't linting for unused variables? |
targos
commented
Dec 23, 2015
@cjihrig we would need the |
Trott
commented
Dec 23, 2015
@cjihrig Linting for unused variables would require us fixing 700+ instances of the issue in the code. The ones I've submitted are uncontroversial ones, but some might result in some debate and discussion, so I'd like to do all the straightforward ones like this one first so the discussion is around the 70 or 80 (guessing) potentially-controversial ones and doesn't hold up the hundreds of ones that should sail through. Here's an example of one that might result in a prolonged discussion: There are three unused vars in Line 953 in d847a74 On the one hand, id isn't used in that function. On the other hand, removing it from the function signature may make it less clear that it is an analogue to the function with the same signature at Line 961 in d847a74 var statement is never used, so I'm removing it". |
cjihrig
commented
Dec 23, 2015
The |
Trott
commented
Dec 23, 2015
For |
mscdex
commented
Dec 23, 2015
Maybe I missed it but, what is the reason why we can't upgrade our copy of eslint? |
Trott
commented
Dec 23, 2015
silverwind
commented
Dec 24, 2015
@mscdex Basically the way we did indentation is not compatible with the latest versions and to fix that we'd have to introduce around 174 lines of "churn" in |
Some files in `lib` were using `require` to load modules that were subsequently not used in the file. This removes those `require` statements. PR-URL: nodejs#4396 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Trott
commented
Dec 25, 2015
Landed in fdeb862 |
Some files in `lib` were using `require` to load modules that were subsequently not used in the file. This removes those `require` statements. PR-URL: nodejs#4396 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
MylesBorins
commented
Jan 13, 2016
@Trott it looks like these changes are breaking v4.x-staging. Would you be able to backport the changes and open a PR against v4.x-staging? |
Trott
commented
Jan 14, 2016
Some files in `lib` were using `require` to load modules that were subsequently not used in the file. This removes those `require` statements. PR-URL: nodejs#4396 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Some files in
libwere usingrequireto load modules that weresubsequently not used in the file. This removes those
requirestatements.