Skip to content

Commit

Permalink
Base: [skip ci] do not make PyBaseProxy class declaration dependent o…
Browse files Browse the repository at this point in the history
…n ATTR_TRACKING
  • Loading branch information
wwmayer committed Apr 26, 2021
1 parent 1c282b8 commit 86b1308
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Base/PyObjectBase.cpp
Expand Up @@ -39,13 +39,11 @@ using namespace Base;
PyObject* Base::BaseExceptionFreeCADError = nullptr;
PyObject* Base::BaseExceptionFreeCADAbort = nullptr;

#ifdef ATTR_TRACKING
typedef struct {
PyObject_HEAD
PyObject* baseobject;
PyObject* weakreflist; /* List of weak references */
} PyBaseProxy;
#endif

// Constructor
PyObjectBase::PyObjectBase(void* p,PyTypeObject *T)
Expand Down Expand Up @@ -224,7 +222,6 @@ PyTypeObject PyObjectBase::Type = {
# pragma clang diagnostic pop
#endif

#ifdef ATTR_TRACKING
PyObject* createWeakRef(PyObjectBase* ptr)
{
static bool init = false;
Expand Down Expand Up @@ -255,7 +252,6 @@ PyObjectBase* getFromWeakRef(PyObject* ref)

return nullptr;
}
#endif

/*------------------------------
* PyObjectBase Methods -- Every class, even the abstract one should have a Methods
Expand Down

0 comments on commit 86b1308

Please sign in to comment.