diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-11-18 19:50:53 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-11-26 11:34:16 +0400 |
commit | 464394bf478a7f3b397ec7045627f827a34c1f09 (patch) | |
tree | b918fc9567dc2ddc87ab93ef84a3ca2d7614ce4c /sql/thr_malloc.cc | |
parent | 13af8650a82f9452d36fe001c42b0b2c794f98d4 (diff) | |
download | mariadb-git-464394bf478a7f3b397ec7045627f827a34c1f09.tar.gz |
MDEV-8717 - Obsolete sql_strdup() in favor of THD::strdup() and thd_strdup()
Diffstat (limited to 'sql/thr_malloc.cc')
-rw-r--r-- | sql/thr_malloc.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sql/thr_malloc.cc b/sql/thr_malloc.cc index 4468de69542..f43acd23abc 100644 --- a/sql/thr_malloc.cc +++ b/sql/thr_malloc.cc @@ -84,16 +84,6 @@ void *sql_calloc(size_t size) } -char *sql_strdup(const char *str) -{ - size_t len= strlen(str)+1; - char *pos; - if ((pos= (char*) sql_alloc(len))) - memcpy(pos,str,len); - return pos; -} - - char *sql_strmake(const char *str, size_t len) { char *pos; |