diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-19 16:02:55 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-19 16:02:55 +0000 |
commit | e0be4445accaff14ea18c1a8705b2d8f5669f1c0 (patch) | |
tree | 2801e487902c5fcabba197378085f0d64c756b4a | |
parent | 047849e878344cedf991a20525c955495b4268fe (diff) | |
download | ruby-e0be4445accaff14ea18c1a8705b2d8f5669f1c0.tar.gz ruby-e0be4445accaff14ea18c1a8705b2d8f5669f1c0.tar.xz ruby-e0be4445accaff14ea18c1a8705b2d8f5669f1c0.zip |
* lib/mathn.rb (Fixnum): remove debug print.
* lib/rational.rb (Rational): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/mathn.rb | 3 | ||||
-rw-r--r-- | lib/rational.rb | 6 |
3 files changed, 6 insertions, 9 deletions
@@ -1,3 +1,9 @@ +Tue Sep 20 01:01:41 2005 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/mathn.rb (Fixnum): remove debug print. + + * lib/rational.rb (Rational): ditto. + Tue Sep 20 00:34:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org> * io.c (io_close): call rb_io_close() directly if io is a T_FILE diff --git a/lib/mathn.rb b/lib/mathn.rb index ddfca5768..3108dd2eb 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -118,9 +118,6 @@ end class Fixnum remove_method :/ alias / quo - alias_method :/, :quo - p :fixdiv - p [[:fixdiv, 1.div(1)]] end class Bignum diff --git a/lib/rational.rb b/lib/rational.rb index f4570bd30..224100485 100644 --- a/lib/rational.rb +++ b/lib/rational.rb @@ -37,7 +37,6 @@ # def Rational(a, b = 1) - p [:Rational, a, b] if a.kind_of?(Rational) && b == 1 a else @@ -55,13 +54,9 @@ class Rational < Numeric num = -num den = -den end - p [:reduce, num, den] gcd = num.gcd(den) - p [:div1, num, num.class, gcd] num = num.div(gcd) - p [:div2, den, gcd] den = den.div(gcd) - p [:gcd=, gcd] if den == 1 && defined?(Unify) num else @@ -338,7 +333,6 @@ end class Fixnum undef quo def quo(other) - p [:quo, self, other] Rational.new!(self,1) / other end alias rdiv quo |