1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

file.c: no longer used functions

* file.c (getcwdofdrv, append_fspath): no longer used except for
  cygwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-09-05 05:29:37 +00:00
parent 83185f9181
commit a1fa2695e1

4
file.c
View file

@ -2629,6 +2629,7 @@ has_drive_letter(const char *buf)
}
}
#ifndef _WIN32
static char*
getcwdofdrv(int drv)
{
@ -2655,6 +2656,7 @@ getcwdofdrv(int drv)
}
return drvcwd;
}
#endif
static inline int
not_same_drive(VALUE path, int drive)
@ -2857,6 +2859,7 @@ rb_home_dir(const char *user, VALUE result)
return result;
}
#ifndef _WIN32
static char *
append_fspath(VALUE result, VALUE fname, char *dir, rb_encoding **enc, rb_encoding *fsenc)
{
@ -2882,7 +2885,6 @@ append_fspath(VALUE result, VALUE fname, char *dir, rb_encoding **enc, rb_encodi
return buf + dirlen;
}
#ifndef _WIN32
VALUE
rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_name, VALUE result)
{