summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-03 23:58:32 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-03 23:58:32 +0000
commit5eaa74661342d061a10c3bede4a35648c25ba11f (patch)
tree67dfd2cce5e3742a758d89e29ef3502c149866e6 /encoding.c
parent5998b9d68f6ff95f1a163d1be0c963132836d1b3 (diff)
encoding.c (enc_memsize): remove unnecessary function
Trims our binary size slightly (numbers from x86-64): text data bss dec hex filename 2795184 22766 72024 2889974 2c18f6 ruby.before 2795112 22766 72024 2889902 2c18ae ruby.after [ruby-core:65304] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/encoding.c b/encoding.c
index e3a0978253..a7301a1b2c 100644
--- a/encoding.c
+++ b/encoding.c
@@ -71,15 +71,9 @@ void rb_enc_init(void);
static int load_encoding(const char *name);
-static size_t
-enc_memsize(const void *p)
-{
- return 0;
-}
-
static const rb_data_type_t encoding_data_type = {
"encoding",
- {0, 0, enc_memsize,},
+ {0, 0, 0,},
NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
};