Author: mattip <[email protected]>
Branch: issue-2248
Changeset: r82654:a6507c5a6623
Date: 2016-03-02 08:58 -0500
http://bitbucket.org/pypy/pypy/changeset/a6507c5a6623/

Log:    remove unused function

diff --git a/pypy/objspace/std/floatobject.py b/pypy/objspace/std/floatobject.py
--- a/pypy/objspace/std/floatobject.py
+++ b/pypy/objspace/std/floatobject.py
@@ -159,17 +159,6 @@
     def _float_w(self, space):
         return self.floatval
 
-    def int(self, space):
-        if (type(self) is not W_FloatObject and
-            space.is_overloaded(self, space.w_float, '__int__')):
-            return W_Root.int(self, space)
-        try:
-            value = ovfcheck_float_to_int(self.floatval)
-        except OverflowError:
-            return space.long(self)
-        else:
-            return space.newint(value)
-
     def is_w(self, space, w_other):
         from rpython.rlib.longlong2float import float2longlong
         if not isinstance(w_other, W_FloatObject):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to