mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Nov 4 08:57:37 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* encoding.c (enc_memsize): remove unnecessary function
|
||||||
|
[ruby-core:65304]
|
||||||
|
|
||||||
Mon Nov 3 18:09:39 2014 Tanaka Akira <akr@fsij.org>
|
Mon Nov 3 18:09:39 2014 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* test/openssl/utils.rb: The default of :ignore_listener_error is
|
* test/openssl/utils.rb: The default of :ignore_listener_error is
|
||||||
|
|
|
@ -71,15 +71,9 @@ void rb_enc_init(void);
|
||||||
|
|
||||||
static int load_encoding(const char *name);
|
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 = {
|
static const rb_data_type_t encoding_data_type = {
|
||||||
"encoding",
|
"encoding",
|
||||||
{0, 0, enc_memsize,},
|
{0, 0, 0,},
|
||||||
NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
|
NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue