diff options
Diffstat (limited to 'engines/gob/helper.h')
-rw-r--r-- | engines/gob/helper.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/engines/gob/helper.h b/engines/gob/helper.h index 5bedf81014..fbb5ae7ec8 100644 --- a/engines/gob/helper.h +++ b/engines/gob/helper.h @@ -35,36 +35,6 @@ inline char *strncpy0(char *dest, const char *src, size_t n) { return dest; } -/** A strdup that new[]s the buffer. */ -inline char *strdupcpy(const char *str) { - if (!str) - return 0; - - size_t len = strlen(str) + 1; - - char *nstr = new char[len]; - - memcpy(nstr, str, len); - - return nstr; -} - -/** A strcat that new[]s the buffer. */ -inline char *strdupcat(const char *str1, const char *str2) { - if (!str1 || !str2) - return 0; - - size_t len1 = strlen(str1); - size_t len2 = strlen(str2); - - char *nstr = new char[len1 + len2 + 1]; - - memcpy(nstr, str1, len1); - memcpy(nstr + len1, str2, len2 + 1); - - return nstr; -} - /** A "smart" reference counting templated class. */ template<typename T> class ReferenceCounter { |