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

Removing unused code with a TODO that no longer needs to be done #35220

Merged
merged 1 commit into from
Oct 17, 2017

Conversation

heddle317
Copy link
Contributor

- What I did
I was looking to fix a TODO in the code, but found that the function isn't used anywhere in the current codebase. Thus, I removed it.

- How I did it
After doing a grep of the whole codebase, found that ProcessExitCode wasn't used anywhere so I removed it.

- How to verify it
Current code tests should verify that the removal of this function is sound.

- Description for the changelog

Removing unused ProcessExitCode function.

- A picture of a cute animal (not mandatory but encouraged)
This is my dog:
2015-07-18 12 22 40

Signed-off-by: Kate Heddleston <kate.heddleston@gmail.com>
Copy link
Member

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

GetExitCode() above this seems like it's only used in one place now (pkg/idtools/idtools_unix.go). It could be moved to that package and unexported, but that can be done in a separate PR.

Copy link
Member

@yongtang yongtang left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants