summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-16 15:18:17 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-16 15:18:17 +0000
commitca9589aeb0ea4715edd9aa1fba9930673c30bdaa (patch)
treeea24c8d4157bf58b22d6e30985c44212f1543873 /io.c
parent0f4ea5f3e374f5423b42b30025461e80abf214fc (diff)
* io.c (rb_getc, rb_io_fread, rb_io_fwrite, rb_read_pending):
remove deprecated functions which do not work. [ruby-dev:36697] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/io.c b/io.c
index 11319ea26d..89d8e7fc6f 100644
--- a/io.c
+++ b/io.c
@@ -404,12 +404,6 @@ rb_io_check_writable(rb_io_t *fptr)
}
int
-rb_read_pending(FILE *fp)
-{
- return STDIO_READ_DATA_PENDING(fp);
-}
-
-int
rb_io_read_pending(rb_io_t *fptr)
{
return READ_DATA_PENDING(fptr);
@@ -846,18 +840,6 @@ io_fwrite(VALUE str, rb_io_t *fptr, int nosync)
return io_binwrite(str, fptr, nosync);
}
-long
-rb_io_fwrite(const char *ptr, long len, FILE *f)
-{
- rb_io_t of;
-
- of.fd = fileno(f);
- of.stdio_file = f;
- of.mode = FMODE_WRITABLE;
- of.pathv = Qnil;
- return io_fwrite(rb_str_new(ptr, len), &of, 0);
-}
-
static VALUE
io_write(VALUE io, VALUE str, int nosync)
{
@@ -1408,22 +1390,6 @@ io_fread(VALUE str, long offset, rb_io_t *fptr)
return len - n;
}
-long
-rb_io_fread(char *ptr, long len, FILE *f)
-{
- rb_io_t of;
- VALUE str;
- long n;
-
- of.fd = fileno(f);
- of.stdio_file = f;
- of.mode = FMODE_READABLE;
- str = rb_str_new(ptr, len);
- n = io_fread(str, 0, &of);
- MEMCPY(ptr, RSTRING_PTR(str), char, n);
- return n;
-}
-
#define SMALLBUF 100
static long
@@ -2705,16 +2671,6 @@ rb_io_getc(VALUE io)
READ_CHECK(fptr);
return io_getc(fptr, enc);
}
-int
-rb_getc(FILE *f)
-{
- int c;
-
- rb_read_check(f);
- c = getc(f);
-
- return c;
-}
/*
* call-seq: