mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
Delete local function strerror and USE_GETCWD define.
Both are useless after porting mch_dirname to libuv.
This commit is contained in:

committed by
Thiago de Arruda

parent
8437a4c972
commit
82e0636e78
@@ -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
|
||||
|
Reference in New Issue
Block a user