From 8d420127b7f8888039dc40353dc3bdec7585d418 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 18 Sep 2017 19:01:25 +0200 Subject: [PATCH] remove deprecated Type attribute --- src/Base/BaseClassPyImp.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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; }