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 unused API #19987

Merged
merged 2 commits into from Jan 17, 2018
Merged

remove unused API #19987

merged 2 commits into from Jan 17, 2018

Conversation

Bjvanminnen
Copy link
Contributor

I was going to attempt some cleanup of section_level_progress and the users_helpers that it uses. In the process, I discovered that I'm pretty sure user_progress_for_all_scripts is used nowhere.

This API was added by Phil here https://github.com/code-dot-org/code-dot-org/pull/6506/files.

If we think this is too risky, we could initially add some reporting (i.e. throw an HB error or something), and only remove if we actually see it unused.

@Bjvanminnen
Copy link
Contributor Author

I added logging for this API in this PR #19997. I've seen no HB errors (as expected) leading me to think this is safe to remove.

My incentives for removing are
(a) It makes some cleanup in related code a little bit easier
(b) We shouldn't host APIs that aren't used.

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

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

👍

@Bjvanminnen Bjvanminnen merged commit d6a220e into staging Jan 17, 2018
@Bjvanminnen Bjvanminnen deleted the removeDeadApi branch January 17, 2018 17:03
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.

None yet

2 participants