Created
September 23, 2010 16:49
-
-
Save matthewd/593959 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From d5708d57aa4653a5cdeb85c6c21c2d1aaae971d5 Mon Sep 17 00:00:00 2001 | |
| From: Matthew Draper <matthew@trebex.net> | |
| Date: Sat, 18 Sep 2010 14:49:15 +0930 | |
| Subject: [PATCH] Remove unused foot-gun primitive. | |
| --- | |
| kernel/bootstrap/fixnum.rb | 5 ----- | |
| vm/builtin/bignum.hpp | 1 - | |
| 2 files changed, 0 insertions(+), 6 deletions(-) | |
| diff --git a/kernel/bootstrap/fixnum.rb b/kernel/bootstrap/fixnum.rb | |
| index f1c3af9..28328b5 100644 | |
| --- a/kernel/bootstrap/fixnum.rb | |
| +++ b/kernel/bootstrap/fixnum.rb | |
| @@ -112,11 +112,6 @@ class Fixnum < Integer | |
| redo_coerced :**, o | |
| end | |
| - def __bignum_new__(value) | |
| - Ruby.primitive :bignum_new | |
| - raise PrimitiveFailure, "primitive failed" | |
| - end | |
| - | |
| # comparison operators | |
| def ==(o) | |
| diff --git a/vm/builtin/bignum.hpp b/vm/builtin/bignum.hpp | |
| index 1b390de..62a7724 100644 | |
| --- a/vm/builtin/bignum.hpp | |
| +++ b/vm/builtin/bignum.hpp | |
| @@ -49,7 +49,6 @@ namespace rubinius { | |
| Integer* abs(STATE); | |
| - // Ruby.primitive :bignum_new | |
| static Bignum* create(STATE, Fixnum* f); | |
| // Ruby.primitive :bignum_from_float | |
| -- | |
| 1.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment