position: Remove unsued Position &Position::operator= (const Position &other)

This commit is contained in:
Calcitem 2020-12-31 19:43:23 +08:00
parent 9722790eb8
commit 9d3a6b9fa1
1 changed files with 0 additions and 16 deletions

View File

@ -1084,22 +1084,6 @@ Key Position::update_key_misc()
Bitboard Position::millTableBB[SQUARE_NB][LD_NB] = {{0}};
#if 0
Position &Position::operator= (const Position &other)
{
if (this == &other)
return *this;
memcpy(this->board, other.board, sizeof(this->board));
memcpy(this->byTypeBB, other.byTypeBB, sizeof(this->byTypeBB));
memcpy(this->byColorBB, other.byColorBB, sizeof(this->byColorBB));
memcpy(&millList, &other.millList, sizeof(millList));
millListSize = other.millListSize;
return *this;
}
#endif
void Position::create_mill_table()
{