X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=aa1f34fc112eaadf00663778a94a5e3ba11f2440;hp=b7bcb4e89f168c9fdf48cdad1fcfc9d596712ccd;hb=733d0099b2a3e3ad594bb551d37c8a06c62f13db;hpb=900e2d4e1e1424076ec197cbe22e941fbf8cbf6b diff --git a/src/types.h b/src/types.h index b7bcb4e8..aa1f34fc 100644 --- a/src/types.h +++ b/src/types.h @@ -489,21 +489,4 @@ inline const std::string square_to_string(Square s) { return ch; } -/// Our insertion sort implementation, works with pointers and iterators and is -/// guaranteed to be stable, as is needed. -template -void sort(K begin, K end) -{ - T tmp; - K p, q; - - for (p = begin + 1; p < end; p++) - { - tmp = *p; - for (q = p; q != begin && *(q-1) < tmp; --q) - *q = *(q-1); - *q = tmp; - } -} - #endif // !defined(TYPES_H_INCLUDED)