From 15e3b12c34e7a5bae8ad8a0ec08cee3fe8d99360 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 27 Aug 2008 17:19:19 +0000 Subject: * include/ruby/io.h (rb_io_t): refcnt field removed. (MakeOpenFile): refcnt initialization removed. * io.c (rb_io_fptr_finalize): don't check refcnt. (rb_io_close_read): don't use refcnt. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/io.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/ruby') diff --git a/include/ruby/io.h b/include/ruby/io.h index 9ef0c5a7d..cb2df584d 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -35,7 +35,6 @@ typedef struct rb_io_t { int lineno; /* number of lines read */ VALUE pathv; /* pathname for file */ void (*finalize)(struct rb_io_t*,int); /* finalize proc */ - long refcnt; char *wbuf; /* wbuf_off + wbuf_len <= wbuf_capa */ int wbuf_off; @@ -109,7 +108,6 @@ typedef struct rb_io_t { fp->lineno = 0;\ fp->pathv = Qnil;\ fp->finalize = 0;\ - fp->refcnt = 1;\ fp->wbuf = NULL;\ fp->wbuf_off = 0;\ fp->wbuf_len = 0;\ -- cgit