diff options
author | tron <tron@openttd.org> | 2004-11-14 08:11:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-11-14 08:11:57 +0000 |
commit | 37cbae03707068aecc81ca344777529939b09c16 (patch) | |
tree | be7b4f96fadc83f2fb4ee81bb06167e33debea35 | |
parent | 84d1041edfb21bb42739a95cfb6fa3909dfce1b4 (diff) | |
download | openttd-37cbae03707068aecc81ca344777529939b09c16.tar.xz |
(svn r579) Remove now unused function memswap()
-rw-r--r-- | functions.h | 1 | ||||
-rw-r--r-- | misc.c | 7 |
2 files changed, 0 insertions, 8 deletions
diff --git a/functions.h b/functions.h index b9ed39a32..d960390cd 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(); @@ -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; |