-
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
repl: deprecate unused function convertToContext #7829
Conversation
cc @ChALkeR Can you please search for this function in the npm modules? |
Good idea, LGTM if nothing too relevant comes up (I’d be surprised if it did, this code is unused since 2010). |
LGTM. Probably worth a CITGM run too, just to flush out anything obvious early on: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/341/ Hopefully I did that correctly.... EDIT: CITGM isn't working because of a breaking change on master. If #7846 lands, it will revert the commit that caused the regression and we can try CITGM again then. |
LGTM if it's not in use. |
Is this supposed to be a user API? |
@Fishrock123 No. History
|
@thefourtheye Does not seem to be used anywhere (based on the old data from 2016-01-28, new data will be ready a bit later). As always, I checked only |
Even tho this doesn't appear to be used, I would still recommend (and would be more comfortable with) a proper deprecation cycle before removing outright. |
Considering my recent attempts with |
@jasnell Using util#deprecation ? |
We have two methods: soft deprecation (docs only) or util.deprecation. We On Tuesday, July 26, 2016, Prince John Wesley [email protected]
|
@jasnell FYI, |
Yeah, soft deprecation isn’t really applicable here, and |
1369ad9
to
a096f00
Compare
@princejwesley Just a leave a to-do like this |
@@ -1222,7 +1222,7 @@ REPLServer.prototype.convertToContext = function(cmd) { | |||
} | |||
|
|||
return cmd; | |||
}; | |||
}, 'replServer.convertToContext will be removed in v8.0.0'); |
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.
use "after", that represents a range, instead of the precise word "in" would be better?
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.
@yorkie removed after v7
?
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.
Exactly what I mean :-) @princejwesley
LGTM |
@@ -1222,7 +1224,7 @@ REPLServer.prototype.convertToContext = function(cmd) { | |||
} | |||
|
|||
return cmd; | |||
}; | |||
}, 'replServer.convertToContext will be removed after v7'); |
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.
Our deprecation messages typically take a form like, 'replServer.convertToContext() is deprecated', without committing to a specific version when it may be removed. The message should also indicate if there is an alternative that the developer should use.
Oops, it might need a test case, though. |
@nodejs/ctc |
0647595
to
05ba902
Compare
LGTM if CI is green :-) |
@nodejs/ctc ... putting out a last call for comments on this. If there are no objections to adding this deprecation I will land tomorrow. |
PR-URL: #7829 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yorkie Liu <[email protected]> Reviewed-By: James M Snell <[email protected]>
Ok, it took longer than a day but landed in 488d28d! :-) |
Just found this. Can we remove it? |
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
repl
Description of change
Remove unused function
convertToContext