summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-14 08:11:57 +0000
committertron <tron@openttd.org>2004-11-14 08:11:57 +0000
commit37cbae03707068aecc81ca344777529939b09c16 (patch)
treebe7b4f96fadc83f2fb4ee81bb06167e33debea35
parent84d1041edfb21bb42739a95cfb6fa3909dfce1b4 (diff)
downloadopenttd-37cbae03707068aecc81ca344777529939b09c16.tar.xz
(svn r579) Remove now unused function memswap()
-rw-r--r--functions.h1
-rw-r--r--misc.c7
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();
diff --git a/misc.c b/misc.c
index 32290640e..cc7b745af 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;