diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-04 01:16:37 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-04 01:16:37 +0000 |
commit | 556152ada3c56b53ff4fa0e82a6ccd83a0967fc7 (patch) | |
tree | b0b76029b7675896c84e05e0ef2fe4ef14014700 /complex.c | |
parent | 4e637b320f39ac4ce2f27327b5451f7720ba2454 (diff) |
* 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.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -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) { |