Core: Revert superfluous changes made with PR #9521

This commit is contained in:
wmayer
2023-10-08 03:01:40 +02:00
committed by wwmayer
parent 22aa20c9e0
commit d305f306df
84 changed files with 265 additions and 1884 deletions

View File

@@ -26,7 +26,6 @@
#include <Base/MatrixPy.h>
#include <Base/PlacementPy.h>
#include <Base/Reader.h>
#include <Base/DocumentReader.h>
#include <Base/Quantity.h>
#include <Base/QuantityPy.h>
@@ -41,7 +40,6 @@
#include "Placement.h"
#include "ObjectIdentifier.h"
#include <Base/Console.h>
using namespace App;
using namespace Base;
@@ -154,25 +152,6 @@ void PropertyVector::Restore(Base::XMLReader &reader)
hasSetValue();
}
void PropertyVector::Restore(Base::DocumentReader &reader,XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *ContainerDOM)
{
// read my Element
auto PropertyVectorDOM = reader.FindElement(ContainerDOM,"PropertyVector");
if(PropertyVectorDOM){
// get the value of my Attribute
const char* valueX_cstr = reader.GetAttribute(PropertyVectorDOM,"valueX");
const char* valueY_cstr = reader.GetAttribute(PropertyVectorDOM,"valueY");
const char* valueZ_cstr = reader.GetAttribute(PropertyVectorDOM,"valueZ");
if(valueX_cstr || valueY_cstr || valueZ_cstr){
aboutToSetValue();
_cVec.x = reader.ContentToFloat(valueX_cstr);
_cVec.y = reader.ContentToFloat(valueY_cstr);
_cVec.z = reader.ContentToFloat(valueZ_cstr);
hasSetValue();
}
}
}
Property *PropertyVector::Copy() const
{