aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-20 16:32:12 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-20 16:32:12 +0000
commit1bfaed8f8d4de9eba8f5b282a18e886aed278a2a (patch)
tree75ebadadb5386e4e99f394e49263954ca4d4c048
parent10e5d076814e99cbd5f69cf1461d657c6285e748 (diff)
downloadruby-1bfaed8f8d4de9eba8f5b282a18e886aed278a2a.tar.gz
* io.c (rb_file_sysopen_internal): unused function removed.
(rb_file_sysopen): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--io.c14
2 files changed, 6 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e0a0db9b3..acd8e51402 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Aug 21 01:31:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_file_sysopen_internal): unused function removed.
+ (rb_file_sysopen): ditto.
+
Thu Aug 21 01:09:26 2008 Tanaka Akira <akr@fsij.org>
* io.c: use mode_t for the 3rd argument, permission, of open(2).
diff --git a/io.c b/io.c
index 24c1a62c42..880b3dc8a2 100644
--- a/io.c
+++ b/io.c
@@ -3988,18 +3988,6 @@ rb_file_open(const char *fname, const char *mode)
return rb_file_open_internal(io_alloc(rb_cFile), fname, mode);
}
-static VALUE
-rb_file_sysopen_internal(VALUE io, const char *fname, int modenum, mode_t perm)
-{
- return rb_file_open_generic(io, fname, modenum, rb_io_modenum_flags(modenum), NULL, perm);
-}
-
-VALUE
-rb_file_sysopen(const char *fname, int modenum, mode_t perm)
-{
- return rb_file_sysopen_internal(io_alloc(rb_cFile), fname, modenum, perm);
-}
-
#if defined(__CYGWIN__) || !defined(HAVE_FORK)
static struct pipe_list {
rb_io_t *fptr;
@@ -4787,7 +4775,7 @@ rb_io_open(const char *fname, VALUE mode, VALUE opt)
if (fname[0] == '|') {
VALUE cmd = rb_str_new2(fname+1);
- return pipe_open_s(cmd, rb_io_modenum_mode(modenum));
+ return pipe_open_s(cmd, rb_io_modenum_mode(modenum)); /* xxx: convconfig ignored */
}
else {
return rb_file_open_generic(io_alloc(rb_cFile), fname,