1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* complex.c (m_log, m_exp): remove unused functions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-03-04 01:16:37 +00:00
parent 4e637b320f
commit 556152ada3
2 changed files with 4 additions and 24 deletions

View file

@ -1,3 +1,7 @@
Thu Mar 4 10:15:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
* complex.c (m_log, m_exp): remove unused functions.
Thu Mar 4 02:34:59 2010 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_env.rb (TestEnv#test_select_bang): add tests.
@ -134,9 +138,6 @@ Sun Feb 28 11:49:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
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.

View file

@ -804,27 +804,6 @@ nucomp_fdiv(VALUE self, VALUE other)
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)
{