FEM: Remove unnecessary overrides from Analysis

onChanged, execute, mustExecute and getPyObject where overwritten but
the implementation didn't do anything different from the implementation
of the base class DocumentObject in this case. Thus they where
redundent.
This commit is contained in:
Markus Hovorka
2019-06-12 21:44:49 +02:00
committed by Bernd Hahnebach
parent f37f0256ef
commit b58245b7b4
2 changed files with 3 additions and 27 deletions

View File

@@ -48,21 +48,6 @@ FemAnalysis::~FemAnalysis()
{
}
short FemAnalysis::mustExecute(void) const
{
return 0;
}
PyObject *FemAnalysis::getPyObject()
{
return App::DocumentObjectGroup::getPyObject();
}
void FemAnalysis::onChanged(const Property* prop)
{
App::DocumentObjectGroup::onChanged(prop);
}
void FemAnalysis::handleChangedPropertyName(Base::XMLReader &reader,
const char * TypeName,
const char *PropName)

View File

@@ -43,23 +43,14 @@ public:
FemAnalysis(void);
virtual ~FemAnalysis();
/// returns the type name of the ViewProvider
virtual const char* getViewProviderName(void) const {
return "FemGui::ViewProviderFemAnalysis";
}
virtual App::DocumentObjectExecReturn *execute(void) {
return App::DocumentObject::StdReturn;
}
virtual short mustExecute(void) const;
virtual PyObject *getPyObject(void);
/// unique identifier of the Analysis
App::PropertyUUID Uid;
virtual const char* getViewProviderName() const {
return "FemGui::ViewProviderFemAnalysis";
}
protected:
/// get called by the container when a property has changed
virtual void onChanged (const App::Property* prop);
/// Support of backward compatibility
virtual void handleChangedPropertyName(Base::XMLReader &reader,
const char * TypeName,