From 1e2da25d3da075c87fababccae0c58d6ffa7df21 Mon Sep 17 00:00:00 2001 From: Thomas Wienecke Date: Tue, 25 Feb 2014 17:03:04 +0100 Subject: os_unix: Use libuv uv_cwd instead of getcwd/getwd. --- src/os_unix.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/os_unix.c') diff --git a/src/os_unix.c b/src/os_unix.c index f65b285ba7..2bfddafc6c 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1244,24 +1244,6 @@ static char * strerror(int err) } #endif -/* - * Get name of current directory into buffer 'buf' of length 'len' bytes. - * Return OK for success, FAIL for failure. - */ -int mch_dirname(char_u *buf, int len) -{ -#if defined(USE_GETCWD) - if (getcwd((char *)buf, len) == NULL) { - STRCPY(buf, strerror(errno)); - return FAIL; - } - return OK; -#else - return getwd((char *)buf) != NULL ? OK : FAIL; -#endif -} - - /* * Get absolute file name into "buf[len]". * -- cgit