From fc2bbf52f96a09bdf640f152cd25a569ce7f77de Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 9 Nov 2016 16:58:54 +0100 Subject: [PATCH] remove deprecated macros --- src/Base/PyObjectBase.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/Base/PyObjectBase.h b/src/Base/PyObjectBase.h index de93379c4..1b9ae3fc0 100644 --- a/src/Base/PyObjectBase.h +++ b/src/Base/PyObjectBase.h @@ -134,10 +134,6 @@ inline void Assert(int expr, char *msg) // C++ assert #define Py_Assert(A,E,M) {if (!(A)) {PyErr_SetString(E, M); return NULL;}} -/// Define the PyParent Object -typedef PyTypeObject * PyParentObject; - - /// This must be the first line of each PyC++ class #define Py_Header \ public: \ @@ -145,22 +141,6 @@ public: \ static PyMethodDef Methods[]; \ virtual PyTypeObject *GetType(void) {return &Type;} -/** This defines the _getattr_up macro - * which allows attribute and method calls - * to be properly passed up the hierarchy. - */ -#define _getattr_up(Parent) \ -{ \ - PyObject *rvalue = Py_FindMethod(Methods, this, attr); \ - if (rvalue == NULL) \ - { \ - PyErr_Clear(); \ - return Parent::_getattr(attr); \ - } \ - else \ - return rvalue; \ -} - /*------------------------------ * PyObjectBase ------------------------------*/