From 87cbf8d0c2cbf438dabb3620c06997ebe27f71f4 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 6 Jan 2013 19:43:37 +0100 Subject: [PATCH] unix: remove unused function uv__strlcpy() --- src/unix/core.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/unix/core.c b/src/unix/core.c index bfc98046..1623441a 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -501,24 +501,6 @@ int uv__dup(int fd) { } -/* TODO move to uv-common.c? */ -size_t uv__strlcpy(char* dst, const char* src, size_t size) { - const char *org; - - if (size == 0) { - return 0; - } - - org = src; - while (--size && *src) { - *dst++ = *src++; - } - *dst = '\0'; - - return src - org; -} - - uv_err_t uv_cwd(char* buffer, size_t size) { if (!buffer || !size) { return uv__new_artificial_error(UV_EINVAL);