diff --git a/src/Mod/TechDraw/App/CenterLine.cpp b/src/Mod/TechDraw/App/CenterLine.cpp index 5f3f48627b..71501f7070 100644 --- a/src/Mod/TechDraw/App/CenterLine.cpp +++ b/src/Mod/TechDraw/App/CenterLine.cpp @@ -1093,14 +1093,6 @@ void CenterLine::createNewTag() tag = gen(); } -void CenterLine::assignTag(const TechDraw::CenterLine* ce) -{ - if(ce->getTypeId() == this->getTypeId()) - this->tag = ce->tag; - else - throw Base::TypeError("CenterLine tag can not be assigned as types do not match."); -} - CenterLine *CenterLine::clone() const { CenterLine* cpy = this->copy(); diff --git a/src/Mod/TechDraw/App/CenterLine.h b/src/Mod/TechDraw/App/CenterLine.h index 2c54fb8b19..8c87a32342 100644 --- a/src/Mod/TechDraw/App/CenterLine.h +++ b/src/Mod/TechDraw/App/CenterLine.h @@ -183,7 +183,6 @@ protected: void initialize(); void createNewTag(); - void assignTag(const TechDraw::CenterLine* cl); boost::uuids::uuid tag; diff --git a/src/Mod/TechDraw/App/Cosmetic.cpp b/src/Mod/TechDraw/App/Cosmetic.cpp index 7ff83c29c6..fc9d2511ac 100644 --- a/src/Mod/TechDraw/App/Cosmetic.cpp +++ b/src/Mod/TechDraw/App/Cosmetic.cpp @@ -328,14 +328,6 @@ void CosmeticEdge::createNewTag() tag = gen(); } -void CosmeticEdge::assignTag(const TechDraw::CosmeticEdge* ce) -{ - if(ce->getTypeId() == this->getTypeId()) - this->tag = ce->tag; - else - throw Base::TypeError("CosmeticEdge tag can not be assigned as types do not match."); -} - CosmeticEdge* CosmeticEdge::clone() const { Base::Console().Message("CE::clone()\n"); @@ -504,14 +496,6 @@ void GeomFormat::createNewTag() tag = gen(); } -void GeomFormat::assignTag(const TechDraw::GeomFormat* ce) -{ - if(ce->getTypeId() == this->getTypeId()) - this->tag = ce->tag; - else - throw Base::TypeError("GeomFormat tag can not be assigned as types do not match."); -} - GeomFormat *GeomFormat::clone() const { GeomFormat* cpy = this->copy(); diff --git a/src/Mod/TechDraw/App/Cosmetic.h b/src/Mod/TechDraw/App/Cosmetic.h index 2a8085fbca..c1ac1c0431 100644 --- a/src/Mod/TechDraw/App/Cosmetic.h +++ b/src/Mod/TechDraw/App/Cosmetic.h @@ -87,7 +87,6 @@ public: protected: //Uniqueness void createNewTag(); - void assignTag(const TechDraw::CosmeticEdge* ce); boost::uuids::uuid tag; Py::Object PythonObject; @@ -130,7 +129,6 @@ public: protected: void createNewTag(); - void assignTag(const TechDraw::GeomFormat* gf); boost::uuids::uuid tag; Py::Object PythonObject; diff --git a/src/Mod/TechDraw/App/CosmeticVertex.cpp b/src/Mod/TechDraw/App/CosmeticVertex.cpp index e2ffe27b47..893405557a 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.cpp +++ b/src/Mod/TechDraw/App/CosmeticVertex.cpp @@ -255,14 +255,6 @@ void CosmeticVertex::createNewTag() tag = gen(); } -void CosmeticVertex::assignTag(const TechDraw::CosmeticVertex* cv) -{ - if(cv->getTypeId() == this->getTypeId()) - this->tag = cv->tag; - else - throw Base::TypeError("CosmeticVertex tag can not be assigned as types do not match."); -} - CosmeticVertex* CosmeticVertex::copy() const { // Base::Console().Message("CV::copy()\n"); diff --git a/src/Mod/TechDraw/App/CosmeticVertex.h b/src/Mod/TechDraw/App/CosmeticVertex.h index 1f44f7c2a5..06e2b23482 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.h +++ b/src/Mod/TechDraw/App/CosmeticVertex.h @@ -84,7 +84,6 @@ public: protected: //Uniqueness void createNewTag(); - void assignTag(const TechDraw::CosmeticVertex* cv); boost::uuids::uuid tag; diff --git a/src/Mod/TechDraw/App/Geometry.h b/src/Mod/TechDraw/App/Geometry.h index 6ee4ce1ba3..45190e0264 100644 --- a/src/Mod/TechDraw/App/Geometry.h +++ b/src/Mod/TechDraw/App/Geometry.h @@ -414,7 +414,6 @@ class TechDrawExport Vertex protected: //Uniqueness void createNewTag(); - void assignTag(const TechDraw::Vertex* v); Base::Vector3d pnt; ExtractionType extractType; //obs?