diff options
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 15f56d6b43..dc459fd01e 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -392,19 +392,6 @@ PyLong_AsLong(PyObject *obj) return result; } -int -_PyLong_FitsInLong(PyObject *vv) -{ - int size; - if (!PyLong_CheckExact(vv)) { - PyErr_BadInternalCall(); - return 0; - } - /* conservative estimate */ - size = Py_SIZE(vv); - return -2 <= size && size <= 2; -} - /* Get a Py_ssize_t from a long int object. Returns -1 and sets an error condition if overflow occurs. */ |