Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore($resource): remove obsolete API #16267

Merged
merged 1 commit into from
Oct 13, 2017

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Oct 11, 2017

This code has been in the $resource service since 2010, but was
never documented and can therefore be removed. It'll save precious bytes!

Shout-out to @gkalpak for finding this.

Technically, we don't have to remove it, but it doesn't make sense to keep it in the repository either. It leads to devs fixing bugs in undocumented APIs: 6eb4ffc ;)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
obsolete code removal

Does this PR introduce a breaking change?
No 😛

Please check if the PR fulfills these requirements

Other information:

This code has been in the $resource service since 2010, but was
never documented and can therefore be removed. It'll save precious bytes!

Shout-out to @gkalpak for finding this
@Narretz Narretz added this to the Backlog milestone Oct 11, 2017
@Narretz Narretz requested a review from gkalpak October 11, 2017 12:28
@Narretz Narretz changed the title chore($resource): remove unused code chore($resource): remove obsolete API Oct 11, 2017
@petebacondarwin
Copy link
Contributor

What happens to the developer out there that really is using this undocumented API?
We are then breaking their app for no real benefit - other than a few bytes.
Is there some way we could ascertain if anyone is using this, other than removing it and waiting to see who complains?

@Narretz
Copy link
Contributor Author

Narretz commented Oct 11, 2017

I doubt anyone is using this, but ofc we cannot be sure.
I wonder how @gkalpak found the bug a year ago in the first place? Maybe he knows somebody who uses it?

@gkalpak
Copy link
Member

gkalpak commented Oct 11, 2017

I was just looking through the source code (working on another issue) and stumbled upon that. I fixed it kust in case; I don't know anyone using it 😃

@petebacondarwin
Copy link
Contributor

OK, so let's remove it and see if anyone complains. We can always add it back in.

@Narretz Narretz merged commit 5462373 into angular:master Oct 13, 2017
@Narretz Narretz deleted the chore-resource-obsolete branch October 13, 2017 13:36
Narretz added a commit that referenced this pull request Oct 13, 2017
This code has been in the $resource service since 2010, but was
never documented and can therefore be removed. It'll save precious bytes!

Shout-out to @gkalpak for finding this

Closes #16267
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants