aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-02-26 00:36:01 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-25 21:24:52 -0300
commit82e0636e788f131d46451805f6c46e2d4f8496a9 (patch)
treee9c4360c74b8fe58212697aabf7f03319dbd4491
parent8437a4c9724f17824c9043afc27288013d096649 (diff)
downloadrneovim-82e0636e788f131d46451805f6c46e2d4f8496a9.tar.gz
rneovim-82e0636e788f131d46451805f6c46e2d4f8496a9.tar.bz2
rneovim-82e0636e788f131d46451805f6c46e2d4f8496a9.zip
Delete local function strerror and USE_GETCWD define.
Both are useless after porting mch_dirname to libuv.
-rw-r--r--src/os_unix.c16
-rw-r--r--src/os_unix.h10
2 files changed, 0 insertions, 26 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 4bc4024abb..c3353d3724 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1228,22 +1228,6 @@ long mch_get_pid() {
return (long)getpid();
}
-#if !defined(HAVE_STRERROR) && defined(USE_GETCWD)
-static char *strerror __ARGS((int));
-
-static char * strerror(int err)
-{
- extern int sys_nerr;
- extern char *sys_errlist[];
- static char er[20];
-
- if (err > 0 && err < sys_nerr)
- return sys_errlist[err];
- sprintf(er, "Error %d", err);
- return er;
-}
-#endif
-
#if defined(USE_FNAME_CASE) || defined(PROTO)
/*
* Set the case of the file name, if it already exists. This will cause the
diff --git a/src/os_unix.h b/src/os_unix.h
index 5ae7c38f88..3eb79e9a25 100644
--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -42,16 +42,6 @@
* Sun defines FILE on SunOS 4.x.x, Solaris has a typedef for FILE
*/
-/*
- * Using getcwd() is preferred, because it checks for a buffer overflow.
- * Don't use getcwd() on systems do use system("sh -c pwd"). There is an
- * autoconf check for this.
- * Use getcwd() anyway if getwd() isn't present.
- */
-#if defined(HAVE_GETCWD) && !(defined(BAD_GETCWD) && defined(HAVE_GETWD))
-# define USE_GETCWD
-#endif
-
#ifndef __ARGS
/* The AIX VisualAge cc compiler defines __EXTENDED__ instead of __STDC__
* because it includes pre-ansi features. */