ruby-changes:36174
From: normal <ko1@a...>
Date: Tue, 4 Nov 2014 08:58:51 +0900 (JST)
Subject: [ruby-changes:36174] normal:r48255 (trunk): encoding.c (enc_memsize): remove unnecessary function
normal 2014-11-04 08:58:32 +0900 (Tue, 04 Nov 2014) New Revision: 48255 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48255 Log: 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] Modified files: trunk/ChangeLog trunk/encoding.c Index: encoding.c =================================================================== --- encoding.c (revision 48254) +++ encoding.c (revision 48255) @@ -71,15 +71,9 @@ void rb_enc_init(void); https://github.com/ruby/ruby/blob/trunk/encoding.c#L71 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 }; Index: ChangeLog =================================================================== --- ChangeLog (revision 48254) +++ ChangeLog (revision 48255) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Nov 4 08:57:37 2014 Eric Wong <e@8...> + + * encoding.c (enc_memsize): remove unnecessary function + [ruby-core:65304] + Mon Nov 3 18:09:39 2014 Tanaka Akira <akr@f...> * test/openssl/utils.rb: The default of :ignore_listener_error is -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/