summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--complex.c21
2 files changed, 4 insertions, 24 deletions
diff --git a/ChangeLog b/ChangeLog
index f30ac05533..a06d354ea4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/complex.c b/complex.c
index 67422572df..eee1186d8f 100644
--- a/complex.c
+++ b/complex.c
@@ -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)
{