]> git.sesse.net Git - stockfish/blobdiff - src/misc.h
Small trivial cleanups
[stockfish] / src / misc.h
index eb4e05c083bdad03b49940d5d28514cfb5836258..8ad17b502f4d3c0bfc02c03054ff20643fd8c40a 100644 (file)
@@ -65,14 +65,6 @@ std::ostream& operator<<(std::ostream&, SyncCout);
 #define sync_cout std::cout << IO_LOCK
 #define sync_endl std::endl << IO_UNLOCK
 
-namespace Utility {
-
-/// Clamp a value between lo and hi. Available in c++17.
-template<class T> constexpr const T& clamp(const T& v, const T& lo, const T& hi) {
-  return v < lo ? lo : v > hi ? hi : v;
-}
-
-}
 
 /// xorshift64star Pseudo-Random Number Generator
 /// This class is based on original code written and dedicated