ruby-changes:7217
From: akr <ko1@a...>
Date: Thu, 21 Aug 2008 01:32:30 +0900 (JST)
Subject: [ruby-changes:7217] Ruby:r18736 (trunk): * io.c (rb_file_sysopen_internal): unused function removed.
akr 2008-08-21 01:32:12 +0900 (Thu, 21 Aug 2008) New Revision: 18736 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18736 Log: * io.c (rb_file_sysopen_internal): unused function removed. (rb_file_sysopen): ditto. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18735) +++ ChangeLog (revision 18736) @@ -1,3 +1,8 @@ +Thu Aug 21 01:31:34 2008 Tanaka Akira <akr@f...> + + * io.c (rb_file_sysopen_internal): unused function removed. + (rb_file_sysopen): ditto. + Thu Aug 21 01:09:26 2008 Tanaka Akira <akr@f...> * io.c: use mode_t for the 3rd argument, permission, of open(2). Index: io.c =================================================================== --- io.c (revision 18735) +++ io.c (revision 18736) @@ -3988,18 +3988,6 @@ 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 @@ 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, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/