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

Removes a few Bitboards and functions that are not used #4695

Closed
wants to merge 1 commit into from

Conversation

rn5f107s2
Copy link
Contributor

@rn5f107s2 rn5f107s2 commented Jul 17, 2023

No functional change

@UniQP
Copy link
Contributor

UniQP commented Jul 17, 2023

@MaximMolchanov pointed out earlier today in Discord that the following functions are unused as well:

position.h:
bool is_on_semiopen_file(Color c, Square s) const;
bool pawn_passed(Color c, Square s) const;
bool opposite_bishops() const;
int  pawns_on_same_color_squares(Color c, Square s) const;
Score psq_score() const;

bitboard.h:
int edge_distance(Rank r);

Removing them renders even more functions in bitboard.h unused. Can you remove all these functions as part of this PR?

@vondele vondele added the to be merged Will be merged shortly label Jul 18, 2023
@vondele vondele closed this in 42d2842 Jul 18, 2023
@vondele vondele mentioned this pull request Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be merged Will be merged shortly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants