From 5573707d7f0ea82fc6fd6335bd23dd9ab6ccbca7 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 24 Mar 2021 09:53:39 +0900 Subject: complex.c: implement `Complex#*` in C. --- mrbgems/mruby-complex/mrblib/complex.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'mrbgems/mruby-complex/mrblib/complex.rb') 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) -- cgit v1.2.3