diff options
Diffstat (limited to 'mrbgems/mruby-complex/mrblib')
| -rw-r--r-- | mrbgems/mruby-complex/mrblib/complex.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mrbgems/mruby-complex/mrblib/complex.rb b/mrbgems/mruby-complex/mrblib/complex.rb index 6372d36f6..f07cb4ba5 100644 --- a/mrbgems/mruby-complex/mrblib/complex.rb +++ b/mrbgems/mruby-complex/mrblib/complex.rb @@ -35,14 +35,6 @@ class Complex < Numeric end end - def *(rhs) - if rhs.is_a? Complex - Complex(real * rhs.real - imaginary * rhs.imaginary, real * rhs.imaginary + rhs.real * imaginary) - elsif rhs.is_a? Numeric - Complex(real * rhs, imaginary * rhs) - end - end - def /(rhs) if rhs.is_a? Complex __div__(rhs) |
