Skip to content
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

Remove deprecated identifiers. #555

Merged
merged 1 commit into from
Feb 18, 2017
Merged

Remove deprecated identifiers. #555

merged 1 commit into from
Feb 18, 2017

Conversation

dmitshur
Copy link
Member

DO NOT MERGE: Please note the base of this PR is currently the require-go17-plus branch rather than master. This PR is for review purposes only. Once #554 is merged, I will change base of this PR to master and it can be mergeable then.

This is part 2 of 3 PRs to resolve #526 (as was suggested to split PR #529 in #529 (comment)).

Please see commit message for change details:

This is a breaking API change. However, it removes things that were deprecated and shouldn't be used anymore (including something that's available in standard library).

Next commit will be a large breaking API change anyway, so it makes more sense to get rid of the deprecated things instead of updating their API.

http.StatusUnprocessableEntity was added in Go 1.7, and so we can use it instead of own equivalent constant. Anyone who was previously using it should switch to using http.StatusUnprocessableEntity as well. Consider this commit to deprecate StatusUnprocessableEntity and remove it in one.

As I wrote in #529 (comment):

I kinda went to an extreme and removed all deprecated things, even ones that wouldn't be affected by API changes. Please see the entire change and review it carefully, and let me know your thoughts. Do we delete only the affected deprecated APIs? All of them (as currently is)? Or don't remove any?

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this, @shurcooL!
LGTM.

@dmitshur
Copy link
Member Author

Ok, pulling the trigger on this and #554. Then we'll just have #529 to clean up, review, and eventually merge.

@dmitshur dmitshur changed the base branch from require-go17-plus to master February 18, 2017 19:27
This is a breaking API change. However, it removes things that were
deprecated and shouldn't be used anymore (including something that's
available in standard library).

Next commit will be a large breaking API change anyway, so it makes more
sense to get rid of the deprecated things instead of updating their API.

http.StatusUnprocessableEntity was added in Go 1.7, and so we can use it
instead of own equivalent constant. Anyone who was previously using it
should switch to using http.StatusUnprocessableEntity as well. Consider
this commit to deprecate StatusUnprocessableEntity and remove it in one.

Helps #526.
@dmitshur dmitshur force-pushed the remove-deprecated-apis branch from dae2143 to f34b33d Compare February 18, 2017 19:29
@dmitshur
Copy link
Member Author

dmitshur commented Feb 18, 2017

(Side note, I had to rebase this on latest master to resolve conflicts, because the commit message of the previous commit changed (added PR number to the title). The actual contents of the commit haven't changed.)

@dmitshur dmitshur merged commit 2a4b920 into master Feb 18, 2017
@dmitshur dmitshur deleted the remove-deprecated-apis branch February 18, 2017 19:35
dmitshur added a commit that referenced this pull request Feb 18, 2017
This is a followup to #555.

mostRecent was created specifically to support Rate method in #347.
That method is now gone (removed in #555), so mostRecent is unused
and can be safely removed.
dmitshur added a commit that referenced this pull request Feb 18, 2017
This is a followup to #555.

mostRecent was created specifically to support Rate method in #347.
That method is now gone (removed in #555), so mostRecent is unused
and can be safely removed.
bubg-dev pushed a commit to bubg-dev/go-github that referenced this pull request Jun 16, 2017
This is a breaking API change. However, it removes things that were
deprecated and shouldn't be used anymore (including something that's
available in standard library).

Next commit will be a large breaking API change anyway (which we need
to do in order to resolve google#526 in a reasonable way), so it makes more
sense to get rid of the deprecated things instead of updating their API.

http.StatusUnprocessableEntity was added in Go 1.7, and so we can use it
instead of own equivalent constant. Anyone who was previously using it
should switch to using http.StatusUnprocessableEntity as well. Consider
this commit to deprecate StatusUnprocessableEntity and remove it in one.

Helps google#526.
bubg-dev pushed a commit to bubg-dev/go-github that referenced this pull request Jun 16, 2017
This is a followup to google#555.

mostRecent was created specifically to support Rate method in google#347.
That method is now gone (removed in google#555), so mostRecent is unused
and can be safely removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support the context package
2 participants