diff --git a/src/Mod/TechDraw/App/DrawParametricTemplatePyImp.cpp b/src/Mod/TechDraw/App/DrawParametricTemplatePyImp.cpp index 9e1c3ad3c..f2a2ba7d7 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplatePyImp.cpp +++ b/src/Mod/TechDraw/App/DrawParametricTemplatePyImp.cpp @@ -80,16 +80,8 @@ PyObject* DrawParametricTemplatePy::drawLine(PyObject *args) } -#if PY_MAJOR_VERSION < 3 -Py::Int DrawParametricTemplatePy::getGeometryCount(void) const -{ - int size = getDrawParametricTemplatePtr()->getGeometry().size(); - return Py::Int(size); -} -#else Py::Long DrawParametricTemplatePy::getGeometryCount(void) const { int size = getDrawParametricTemplatePtr()->getGeometry().size(); return Py::Long(size); } -#endif