summaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-25 15:17:17 +0000
committerrubidium <rubidium@openttd.org>2014-04-25 15:17:17 +0000
commitdb8d208bfc96f5b2c38c18f4f96de47987597208 (patch)
treede35aad176a75ef6aaa86ba71ad4e4eb78ac86f0 /src/string.cpp
parente61fe2123728dd4cd2eba3ed628905b337ddff19 (diff)
downloadopenttd-db8d208bfc96f5b2c38c18f4f96de47987597208.tar.xz
(svn r26507) -Cleanup: remove now unused custom strndup implementation
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 63288e431..87ea26ee7 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -528,16 +528,6 @@ size_t Utf8TrimString(char *s, size_t maxlen)
return length;
}
-#ifdef DEFINE_STRNDUP
-char *strndup(const char *s, size_t len)
-{
- len = ttd_strnlen(s, len);
- char *tmp = CallocT<char>(len + 1);
- memcpy(tmp, s, len);
- return tmp;
-}
-#endif /* DEFINE_STRNDUP */
-
#ifdef DEFINE_STRCASESTR
char *strcasestr(const char *haystack, const char *needle)
{