From a1fa2695e1cbb6580357d26e111cc604c6273f3c Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 5 Sep 2012 05:29:37 +0000 Subject: 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 --- file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 8c63f56d01..ba7fea7b0f 100644 --- a/file.c +++ b/file.c @@ -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) { -- cgit v1.2.1