diff --git a/GUI/Model/Descriptor/PolyItem.h b/GUI/Model/Descriptor/PolyItem.h index ad39170cc92fcb7b952987e611e05ab2021a1daf..cb55b001e8b1865ee5cf1692fa94ffd5cf5f3d17 100644 --- a/GUI/Model/Descriptor/PolyItem.h +++ b/GUI/Model/Descriptor/PolyItem.h @@ -135,7 +135,6 @@ template <typename C> void PolyItem<C>::writeItemTo(const BaseType* t, QXmlStrea XML::writeAttribute(w, XML::Attrib::type, typeIndex); // The next line allows to see the name of item type in XML. May be skipped while reading. XML::writeAttribute(w, XML::Attrib::name, C::uiInfo(C::type(t)).menuEntry); - XML::writeAttribute(w, XML::Attrib::selection_version, uint(1)); if (t) t->writeTo(w); } @@ -151,8 +150,6 @@ void PolyItem<C>::writeChosen(const BaseType* t, QXmlStreamWriter* w, const QStr template <typename C> template <typename... Args> C::BaseType* PolyItem<C>::readItemFrom(QXmlStreamReader* r, Args... args) { - const uint sel_ver = XML::readUInt(r, XML::Attrib::selection_version); - Q_UNUSED(sel_ver) const uint typeIndex = XML::readUInt(r, XML::Attrib::type); const auto type = static_cast<typename C::Type>(typeIndex); BaseType* t = C::create(type, args...); diff --git a/GUI/Model/Util/UtilXML.h b/GUI/Model/Util/UtilXML.h index 5a039474ea16f3c991c94af0ddff1928ddff7016..50e664e323fd584619f580d73550de21d49c1fcf 100644 --- a/GUI/Model/Util/UtilXML.h +++ b/GUI/Model/Util/UtilXML.h @@ -36,7 +36,6 @@ const QString id("id"); const QString index("index"); const QString name("name"); const QString projectName("projectName"); -const QString selection_version("selection_version"); const QString type("type"); const QString value("value"); const QString xPos("xPos");