[pypy-commit] pypy cpyext-nowrapper: this is no longer needed

antocuni pypy.commits at gmail.com
Sun Oct 8 18:13:07 EDT 2017


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: cpyext-nowrapper
Changeset: r92663:2754d331493b
Date: 2017-10-07 19:36 +0200
http://bitbucket.org/pypy/pypy/changeset/2754d331493b/

Log:	this is no longer needed

diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/module/cpyext/object.py
+++ b/pypy/module/cpyext/object.py
@@ -41,12 +41,6 @@
 def _PyObject_New(space, type):
     return _PyObject_NewVar(space, type, 0)
 
-def _VAR_SIZE(typeobj, nitems):
-    # equivalent to _PyObject_VAR_SIZE
-    SIZEOF_VOID_P = rffi.sizeof(rffi.VOIDP)
-    return (typeobj.c_tp_basicsize +
-            nitems * typeobj.c_tp_itemsize +
-            (SIZEOF_VOID_P - 1)) & ~(SIZEOF_VOID_P - 1)
 
 @cpython_api([PyTypeObjectPtr, Py_ssize_t], PyObject, result_is_ll=True)
 def _PyObject_NewVar(space, tp, nitems):


More information about the pypy-commit mailing list