summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;