mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
This commit is contained in:
parent
5998b9d68f
commit
5eaa746613
2 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue