[TechDraw] Remove deprecated replaceCenterLine

This commit is contained in:
Benjamin Bræstrup Sayoc
2022-08-02 12:54:26 +02:00
committed by WandererFan
parent 0bb56ad93f
commit 8719b71e39
4 changed files with 0 additions and 34 deletions

View File

@@ -356,14 +356,6 @@ void CosmeticExtension::removeCenterLine(std::vector<std::string> delTags)
}
}
bool CosmeticExtension::replaceCenterLine(CenterLine* newCL)
{
(void) newCL;
Base::Console().Message("CX::replaceCenterLine() - deprecated. do not use.\n");
bool result = false;
return result;
}
//********** Geometry Formats **************************************************
//returns unique GF id

View File

@@ -72,7 +72,6 @@ public:
virtual CenterLine* getCenterLineBySelection(std::string name) const;
virtual CenterLine* getCenterLineBySelection(int i) const;
virtual CenterLine* getCenterLine(std::string tag) const;
virtual bool replaceCenterLine(CenterLine* newLine);
virtual void removeCenterLine(std::string tag);
virtual void removeCenterLine(std::vector<std::string> delTags);

View File

@@ -103,11 +103,6 @@
<UserDocu>cl = getCenterLineBySelection(name) - returns CenterLine by name (Edge25). Used in selections</UserDocu>
</Documentation>
</Methode>
<Methode Name="replaceCenterLine">
<Documentation>
<UserDocu>replaceCenterLine(cl) - replacls CenterLine cl in View. Returns True/False.</UserDocu>
</Documentation>
</Methode>
<Methode Name="removeCenterLine">
<Documentation>
<UserDocu>removeCenterLine(cl) - remove CenterLine cl from View. Returns None.</UserDocu>

View File

@@ -581,26 +581,6 @@ PyObject* DrawViewPartPy::getCenterLineBySelection(PyObject *args)
return result;
}
PyObject* DrawViewPartPy::replaceCenterLine(PyObject *args)
{
(void) args;
Base::Console().Message("DVPP::replaceCenterLine() - deprecated. do not use.\n");
return PyBool_FromLong(0l);
// Base::Console().Message("DVPPI::replace CenterLine()\n");
// PyObject* pNewCL;
// if (!PyArg_ParseTuple(args, "O!", &(TechDraw::CenterLinePy::Type), &pNewCL)) {
// throw Py::TypeError("expected (CenterLine)");
// }
// DrawViewPart* dvp = getDrawViewPartPtr();
// TechDraw::CenterLinePy* clPy = static_cast<TechDraw::CenterLinePy*>(pNewCL);
// TechDraw::CenterLine* cl = clPy->getCenterLinePtr();
// bool result = dvp->replaceCenterLine(cl);
// dvp->refreshCLGeoms();
// dvp->requestPaint();
// return PyBool_FromLong((long) result);
}
PyObject* DrawViewPartPy::removeCenterLine(PyObject *args)
{
// Base::Console().Message("DVPPI::removeCenterLine()\n");