diff --git a/cpp/src/arrow/python/common.cc b/cpp/src/arrow/python/common.cc index 55fc360df603a..5a6cf54f69ab3 100644 --- a/cpp/src/arrow/python/common.cc +++ b/cpp/src/arrow/python/common.cc @@ -102,7 +102,6 @@ PyBuffer::~PyBuffer() { // ---------------------------------------------------------------------- // Python exception -> Status - Status ConvertPyError(StatusCode code) { PyObject* exc_type = nullptr; PyObject* exc_value = nullptr; @@ -148,7 +147,8 @@ Status PassPyError() { if (PyErr_Occurred()) { // Do not call PyErr_Clear, the assumption is that someone further // up the call stack will want to deal with the Python error. - return Status(StatusCode::UnknownError, "Python Error", std::make_shared()); + return Status(StatusCode::UnknownError, "Python Error", + std::make_shared()); } return Status::OK(); } diff --git a/python/pyarrow/_plasma.pyx b/python/pyarrow/_plasma.pyx index fc929e0cc0ca4..df387be1379e8 100644 --- a/python/pyarrow/_plasma.pyx +++ b/python/pyarrow/_plasma.pyx @@ -269,9 +269,6 @@ class PlasmaObjectExists(ArrowException): pass - - - cdef int plasma_check_status(const CStatus& status) nogil except -1: if status.ok(): return 0 @@ -288,8 +285,6 @@ cdef int plasma_check_status(const CStatus& status) nogil except -1: return check_status(status) - - cdef class PlasmaClient: """ The PlasmaClient is used to interface with a plasma store and manager.