diff --git a/native/common/jp_exception.cpp b/native/common/jp_exception.cpp index 170cf89a4..ddff7ce50 100644 --- a/native/common/jp_exception.cpp +++ b/native/common/jp_exception.cpp @@ -508,12 +508,6 @@ PyObject *tb_create( PyFrameObject *pframe = PyFrame_New(state, (PyCodeObject*) code.get(), dict, NULL); JPPyObject frame = JPPyObject::accept((PyObject*)pframe); - // Swap the back pointer - //PyObject* old = frame->f_back; - //frame->f_back = last_traceback->tb_frame; - //Py_XDECREF(old); - //Py_XINCREF(last_traceback->tb_frame); - // If we don't get the frame object there is no point if (frame.get() == NULL) return NULL; diff --git a/native/python/pyjp_value.cpp b/native/python/pyjp_value.cpp index e9ac16637..93dba9505 100644 --- a/native/python/pyjp_value.cpp +++ b/native/python/pyjp_value.cpp @@ -23,8 +23,6 @@ extern "C" { #endif -extern PyObject * _PyObject_GC_Malloc(size_t basicsize); - /** * Allocate a new Python object with a slot for Java. * @@ -49,7 +47,7 @@ PyObject* PyJPValue_alloc(PyTypeObject* type, Py_ssize_t nitems ) if (PyType_IS_GC(type)) { // Horrible kludge because python lacks an API for allocating a GC type with extra memory - // The privor method _PyObject_GC_Alloc is no longer visible, so we are forced to allocate + // The private method _PyObject_GC_Alloc is no longer visible, so we are forced to allocate // a different type with the extra memory and then hot swap the type to the real one. PyTypeObject type2; type2.tp_basicsize = size;