X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.cpp;h=b64b75cbca63e22a0f375611d9e5e4be920ea864;hp=136ee0f6529002db6f33d3cf016b7f2cec55ba1c;hb=27ba611a3da37423a3502e49beeebe11c9a11d8e;hpb=f907d5b7d93a161bc88aeaec403631de9de092f9 diff --git a/src/endgame.cpp b/src/endgame.cpp index 136ee0f6..b64b75cb 100644 --- a/src/endgame.cpp +++ b/src/endgame.cpp @@ -110,14 +110,6 @@ Endgames::Endgames() { } -template -void Endgames::add(const string& code) { - StateInfo st; - map()[Position().set(code, WHITE, &st).material_key()] = std::unique_ptr>(new Endgame(WHITE)); - map()[Position().set(code, BLACK, &st).material_key()] = std::unique_ptr>(new Endgame(BLACK)); -} - - /// Mate with KX vs K. This function is used to evaluate positions with /// king and plenty of material vs a lone king. It simply gives the /// attacking side a bonus for driving the defending king towards the edge