Browse files

unix: remove unused function uv__strlcpy()

  • Loading branch information...
1 parent 345eb63 commit 87cbf8d0c2cbf438dabb3620c06997ebe27f71f4 @bnoordhuis bnoordhuis committed Jan 6, 2013
Showing with 0 additions and 18 deletions.
  1. +0 −18 src/unix/core.c
View
18 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);

0 comments on commit 87cbf8d

Please sign in to comment.