]> git.sesse.net Git - stockfish/commitdiff
There is no need to clear TT at allocation time
authorMarco Costalba <mcostalba@gmail.com>
Sun, 11 Jul 2010 08:42:04 +0000 (09:42 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 11 Jul 2010 08:42:04 +0000 (09:42 +0100)
Operator new() already returns a zeroed memory.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/tt.cpp

index 57dd00790e816670cea1bdfbfea870896492dce5..00ecfb635c187780cf4c8c475ee3df660532fb1a 100644 (file)
@@ -72,7 +72,6 @@ void TranspositionTable::set_size(size_t mbSize) {
                     << " MB for transposition table." << std::endl;
           Application::exit_with_failure();
       }
                     << " MB for transposition table." << std::endl;
           Application::exit_with_failure();
       }
-      clear();
   }
 }
 
   }
 }