From 37cbae03707068aecc81ca344777529939b09c16 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 14 Nov 2004 08:11:57 +0000 Subject: [PATCH] (svn r579) Remove now unused function memswap() --- functions.h | 1 - misc.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/functions.h b/functions.h index b9ed39a327..d960390cdf 100644 --- a/functions.h +++ b/functions.h @@ -86,7 +86,6 @@ StringID GetPlayerNameString(byte player, byte index); 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 index 32290640ef..cc7b745af4 100644 --- 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;