diff --git a/src/Base/BaseClassPyImp.cpp b/src/Base/BaseClassPyImp.cpp index 14aa396622..8db2abe435 100644 --- a/src/Base/BaseClassPyImp.cpp +++ b/src/Base/BaseClassPyImp.cpp @@ -80,15 +80,8 @@ Py::String BaseClassPy::getModule(void) const return Py::String(module); } -PyObject *BaseClassPy::getCustomAttributes(const char* attr) const +PyObject *BaseClassPy::getCustomAttributes(const char* /*attr*/) const { - // this attribute is marked 'deprecated' but to keep old code working we - // handle it here. In a future version this will be removed. - if (strcmp(attr, "Type") == 0) { - PyErr_SetString(PyExc_DeprecationWarning, "Use 'TypeId' instead"); - PyErr_Print(); - return Py::new_reference_to(Py::String(std::string(getBaseClassPtr()->getTypeId().getName()))); - } return 0; }