summaryrefslogtreecommitdiff
path: root/src/os_posix
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-05-01 07:25:49 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-05-01 08:53:58 -0400
commitff33b97bf7aeb8b87a0be252a2cb7de7c56c534d (patch)
tree1545d730aa0719a60dbc79aca5bdb2335f6ce4b1 /src/os_posix
parent64f304ef5c13383d5989078541734b305f6a6400 (diff)
downloadmongo-ff33b97bf7aeb8b87a0be252a2cb7de7c56c534d.tar.gz
__wt_strdup() is a one-liner that calls __wt_strndup(), inline it.
Diffstat (limited to 'src/os_posix')
-rw-r--r--src/os_posix/os_alloc.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/os_posix/os_alloc.c b/src/os_posix/os_alloc.c
index 55a673e4fbb..4d04f9ac579 100644
--- a/src/os_posix/os_alloc.c
+++ b/src/os_posix/os_alloc.c
@@ -228,17 +228,6 @@ __wt_strndup(WT_SESSION_IMPL *session, const void *str, size_t len, void *retp)
}
/*
- * __wt_strdup --
- * ANSI strdup function.
- */
-int
-__wt_strdup(WT_SESSION_IMPL *session, const char *str, void *retp)
-{
- return (__wt_strndup(
- session, str, (str == NULL) ? 0 : strlen(str), retp));
-}
-
-/*
* __wt_free_int --
* ANSI free function.
*/