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 BinMapper::SizeForSpecificBin() #4643

Merged
merged 3 commits into from
Oct 5, 2021

Conversation

jameslamb
Copy link
Collaborator

cppcheck shows the following warning (#4539 (comment))

src/io/bin.cpp:523:0: style: The function 'SizeForSpecificBin' is never used. [unusedFunction]

I confirmed that this method is not called anywhere in the library, using git grep SizeForSpecificBin. I think it's safe to remove, since only the code in src/c_api.cpp is considered parrt of the public API for LightGBM.

I also double-checked and don't see this method referenced in the in-progress CUDA work (#4528, #4630).

Notes for Reviewers

I checked the git blame to see if this method had been added for a specific purpose in the past, but don't see anything like that. It was part of the first commit on the project.

https://github.com/microsoft/LightGBM/blame/7a82ba4ffcca8530e53b75f148429978653a57c3/include/LightGBM/bin.h#L153

Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

@guolinke guolinke merged commit e81eaaa into master Oct 5, 2021
@StrikerRUS StrikerRUS deleted the cppcheck/unused-sizeforbin branch October 5, 2021 20:54
@jameslamb jameslamb mentioned this pull request Oct 6, 2021
16 tasks
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
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