aboutsummaryrefslogtreecommitdiffstats
path: root/complex.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-04 01:16:37 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-04 01:16:37 +0000
commit556152ada3c56b53ff4fa0e82a6ccd83a0967fc7 (patch)
treeb0b76029b7675896c84e05e0ef2fe4ef14014700 /complex.c
parent4e637b320f39ac4ce2f27327b5451f7720ba2454 (diff)
downloadruby-556152ada3c56b53ff4fa0e82a6ccd83a0967fc7.tar.gz
* 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
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c21
1 files changed, 0 insertions, 21 deletions
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)
{