aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-11-13 12:41:39 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-11-14 20:35:48 +0900
commitc9ffe751d126a302d0e7e53e645e44084e339dde (patch)
tree0393401c6f11ee528ef30fdd1d51fc96b7837a9c /io.c
parent4d615a0c8f4759ce4f6b96b643ef957837bdf20e (diff)
downloadruby-c9ffe751d126a302d0e7e53e645e44084e339dde.tar.gz
delete unused functions
Looking at the list of symbols inside of libruby-static.a, I found hundreds of functions that are defined, but used from nowhere. There can be reasons for each of them (e.g. some functions are specific to some platform, some are useful when debugging, etc). However it seems the functions deleted here exist for no reason. This changeset reduces the size of ruby binary from 26,671,456 bytes to 26,592,864 bytes on my machine.
Diffstat (limited to 'io.c')
-rw-r--r--io.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/io.c b/io.c
index bb8036c63b..f4dc499633 100644
--- a/io.c
+++ b/io.c
@@ -2493,16 +2493,6 @@ io_fread(VALUE str, long offset, long size, rb_io_t *fptr)
return len;
}
-ssize_t
-rb_io_bufread(VALUE io, void *buf, size_t size)
-{
- rb_io_t *fptr;
-
- GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
- return (ssize_t)io_bufread(buf, (long)size, fptr);
-}
-
static long
remain_size(rb_io_t *fptr)
{
@@ -12870,12 +12860,6 @@ opt_i_set(VALUE val, ID id, VALUE *var)
argf_inplace_mode_set(*var, val);
}
-const char *
-ruby_get_inplace_mode(void)
-{
- return RSTRING_PTR(ARGF.inplace);
-}
-
void
ruby_set_inplace_mode(const char *suffix)
{