diff --git a/functions.h b/functions.h --- a/functions.h +++ b/functions.h @@ -86,7 +86,6 @@ StringID GetPlayerNameString(byte player void ShowInfo(const char *str); void CDECL ShowInfoF(const char *str, ...); void NORETURN CDECL error(const char *str, ...); -void memswap(void *a, void *b, size_t size); /* ttd.c */ uint32 Random(); diff --git a/misc.c b/misc.c --- a/misc.c +++ b/misc.c @@ -77,13 +77,6 @@ void InitPlayerRandoms() } } -void memswap(void *a, void *b, size_t size) { - void *c = alloca(size); - memcpy(c, a, size); - memcpy(a, b, size); - memcpy(b, c, size); -} - void SetDate(uint date) { YearMonthDay ymd;