-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
module: Remove unused code #4649
Conversation
Remove unused `requireRepl` code. It was deprecated after 5.1.x
Fwiw - This is a breaking change. I don't really see the rush in removing it after it got a deprecation notice. |
I agree, the deprecation notice was only added in November in ee72ee7. I think we would remove this in 7.0? |
Maybe we should add the |
@zeusdeux I could be wrong, but I was under the assumption that the current "deprecation policy" was to have a deprecation for the duration of (at least) one full major version before removal. That said, this could still be pushed to master, but just not pulled in/released until 7.0. |
@chrisdickinson ... can we possibly get some information on if the removed method is used at all in modules? |
I checked before my first comment through GH code search. It appears in multiple npm and GH repos. Not a very high amount but it does appear in some ones with ~10 stars. Mostly, I don't really see the need to remove it - the benefit in removing deprecated methods is that it simplifies the code base and makes things easier for developers - not really the case here. To compare, no one is even considering removing fs. exists (and rightly so) |
If there are modules using it, I'd say there's no harm in keeping it for at least a while longer. |
given the comments on this one, I'm inclined to close. We can revisit it later. |
Remove unused
requireRepl
code.It was deprecated after 5.1.x.
This is with reference to #4642.