aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/helper.h
diff options
context:
space:
mode:
authorMax Horn2009-05-31 17:00:38 +0000
committerMax Horn2009-05-31 17:00:38 +0000
commite072532458b177c281302957c6eda318914e52c2 (patch)
treee4cee65571d3fe4311e5ec730e7ee8a3d1da60ea /engines/gob/helper.h
parent78a887490357393b420e288a3318d94497e59293 (diff)
downloadscummvm-rg350-e072532458b177c281302957c6eda318914e52c2.tar.gz
scummvm-rg350-e072532458b177c281302957c6eda318914e52c2.tar.bz2
scummvm-rg350-e072532458b177c281302957c6eda318914e52c2.zip
GOB: Got rid of last traces of strdupcpy and strdupcat
svn-id: r41079
Diffstat (limited to 'engines/gob/helper.h')
-rw-r--r--engines/gob/helper.h30
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 {