summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/openttd.c b/openttd.c
index 6e9b5130a..15262f8e4 100644
--- a/openttd.c
+++ b/openttd.c
@@ -93,22 +93,6 @@ void CDECL ShowInfoF(const char *str, ...)
ShowInfo(buf);
}
-char * CDECL str_fmt(const char *str, ...)
-{
- char buf[4096];
- va_list va;
- int len;
- char *p;
-
- va_start(va, str);
- len = vsprintf(buf, str, va);
- va_end(va);
- p = malloc(len + 1);
- if (p)
- memcpy(p, buf, len + 1);
- return p;
-}
-
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize)
{