ruby-changes:14941
From: naruse <ko1@a...>
Date: Thu, 4 Mar 2010 10:16:55 +0900 (JST)
Subject: [ruby-changes:14941] Ruby:r26812 (trunk): * complex.c (m_log, m_exp): remove unused functions.
naruse 2010-03-04 10:16:37 +0900 (Thu, 04 Mar 2010) New Revision: 26812 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26812 Log: * complex.c (m_log, m_exp): remove unused functions. Modified files: trunk/ChangeLog trunk/complex.c Index: complex.c =================================================================== --- complex.c (revision 26811) +++ complex.c (revision 26812) @@ -804,27 +804,6 @@ return f_divide(self, other, f_fdiv, id_fdiv); } -static VALUE -m_log(VALUE x) -{ - if (f_real_p(x) && f_positive_p(x)) - return m_log_bang(x); - return rb_complex_new2(m_log_bang(f_abs(x)), f_arg(x)); -} - -static VALUE -m_exp(VALUE x) -{ - VALUE ere, im; - - if (f_real_p(x)) - return m_exp_bang(x); - ere = m_exp_bang(f_real(x)); - im = f_imag(x); - return rb_complex_new2(f_mul(ere, m_cos_bang(im)), - f_mul(ere, m_sin_bang(im))); -} - inline static VALUE f_reciprocal(VALUE x) { Index: ChangeLog =================================================================== --- ChangeLog (revision 26811) +++ ChangeLog (revision 26812) @@ -1,3 +1,7 @@ +Thu Mar 4 10:15:10 2010 NARUSE, Yui <naruse@r...> + + * complex.c (m_log, m_exp): remove unused functions. + Thu Mar 4 02:34:59 2010 Yusuke Endoh <mame@t...> * test/ruby/test_env.rb (TestEnv#test_select_bang): add tests. @@ -134,9 +138,6 @@ Hongli Lai [ruby-core:27417], and Motohiro KOSAKI [ruby-core:28063] - * ext/openssl/ossl_ssl.c (ossl_ssl_method_tab), - (ossl_ssl_cipher_to_ary): constified. - * ext/openssl/ossl_pkcs7.c (pkcs7_get_certs, pkcs7_get_crls): split pkcs7_get_certs_or_crls. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/