From 3deb62d653e23b175e0c7688976f8af776808980 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 24 Mar 2021 10:27:49 +0900 Subject: complex.c: implement `Complex#/` and `#quo` in C. --- mrbgems/mruby-complex/mrblib/complex.rb | 9 --------- 1 file changed, 9 deletions(-) (limited to 'mrbgems/mruby-complex/mrblib') diff --git a/mrbgems/mruby-complex/mrblib/complex.rb b/mrbgems/mruby-complex/mrblib/complex.rb index f07cb4ba5..105c56d40 100644 --- a/mrbgems/mruby-complex/mrblib/complex.rb +++ b/mrbgems/mruby-complex/mrblib/complex.rb @@ -35,15 +35,6 @@ class Complex < Numeric end end - def /(rhs) - if rhs.is_a? Complex - __div__(rhs) - elsif rhs.is_a? Numeric - Complex(real / rhs, imaginary / rhs) - end - end - alias_method :quo, :/ - def abs Math.hypot imaginary, real end -- cgit v1.2.3