[PD] revolve: remove unused code
- also come code style unification
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
@@ -52,6 +51,7 @@
|
||||
#include "TaskSketchBasedParameters.h"
|
||||
#include "Utils.h"
|
||||
|
||||
|
||||
Q_DECLARE_METATYPE(App::PropertyLinkSubList::SubSet)
|
||||
|
||||
using namespace PartDesignGui;
|
||||
@@ -165,9 +165,7 @@ TaskPipeParameters::~TaskPipeParameters()
|
||||
}
|
||||
|
||||
void TaskPipeParameters::updateUI()
|
||||
{
|
||||
|
||||
}
|
||||
{}
|
||||
|
||||
void TaskPipeParameters::onSelectionChanged(const Gui::SelectionChanges& msg)
|
||||
{
|
||||
|
||||
@@ -301,11 +301,6 @@ void TaskRevolutionParameters::onReversed(bool on)
|
||||
recomputeFeature();
|
||||
}
|
||||
|
||||
double TaskRevolutionParameters::getAngle() const
|
||||
{
|
||||
return ui->revolveAngle->value().getValue();
|
||||
}
|
||||
|
||||
void TaskRevolutionParameters::getReferenceAxis(App::DocumentObject*& obj, std::vector<std::string>& sub) const
|
||||
{
|
||||
if (axesInList.empty())
|
||||
|
||||
@@ -39,14 +39,12 @@ class ViewProvider;
|
||||
|
||||
namespace PartDesignGui {
|
||||
|
||||
|
||||
|
||||
class TaskRevolutionParameters : public TaskSketchBasedParameters
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TaskRevolutionParameters(ViewProvider* RevolutionView,QWidget *parent = nullptr);
|
||||
explicit TaskRevolutionParameters(ViewProvider* RevolutionView, QWidget* parent = nullptr);
|
||||
~TaskRevolutionParameters() override;
|
||||
|
||||
void apply() override;
|
||||
@@ -71,7 +69,6 @@ protected:
|
||||
void onSelectionChanged(const Gui::SelectionChanges& msg) override;
|
||||
void changeEvent(QEvent *event) override;
|
||||
void getReferenceAxis(App::DocumentObject *&obj, std::vector<std::string> &sub) const;
|
||||
double getAngle() const;
|
||||
bool getMidplane() const;
|
||||
bool getReversed() const;
|
||||
|
||||
@@ -110,7 +107,9 @@ public:
|
||||
explicit TaskDlgRevolutionParameters(PartDesignGui::ViewProvider *RevolutionView);
|
||||
|
||||
ViewProvider* getRevolutionView() const
|
||||
{ return vp; }
|
||||
{
|
||||
return vp;
|
||||
}
|
||||
};
|
||||
|
||||
} //namespace PartDesignGui
|
||||
|
||||
Reference in New Issue
Block a user