remove unnecessary code and comment

This commit is contained in:
donovaly
2020-02-16 22:13:17 +01:00
committed by wmayer
parent 58bb17478c
commit 38b6160faa
4 changed files with 0 additions and 26 deletions

View File

@@ -159,12 +159,6 @@ void TaskChamferParameters::clearButtons(const selectionModes notThis)
void TaskChamferParameters::onRefDeleted(void)
{
// get vector of selected objects of active document to assure we have a valid selection
std::vector<Gui::SelectionObject> selection = Gui::Selection().getSelectionEx();
if (selection.size() == 0) {
QMessageBox::warning(this, tr("Selection error"), tr("Nothing selected!"));
return;
}
// assure we we are not in selection mode
exitSelectionMode();
clearButtons(none);

View File

@@ -233,12 +233,6 @@ void TaskDraftParameters::onButtonLine(bool checked)
void TaskDraftParameters::onRefDeleted(void)
{
// get vector of selected objects of active document to assure we have a valid selection
std::vector<Gui::SelectionObject> selection = Gui::Selection().getSelectionEx();
if (selection.size() == 0) {
QMessageBox::warning(this, tr("Selection error"), tr("Nothing selected!"));
return;
}
// assure we we are not in selection mode
exitSelectionMode();
clearButtons(none);
@@ -251,7 +245,6 @@ void TaskDraftParameters::onRefDeleted(void)
// delete the selection backwards to assure the list index keeps valid for the deletion
for (int i = selectedList.count() - 1; i > -1; i--) {
//QMessageBox::warning(this, tr("i"), QString::number(i));
QListWidgetItem* item = selectedList.at(i);
// get the fillet object
PartDesign::Draft* pcDraft = static_cast<PartDesign::Draft*>(DressUpView->getObject());

View File

@@ -159,12 +159,6 @@ void TaskFilletParameters::clearButtons(const selectionModes notThis)
void TaskFilletParameters::onRefDeleted(void)
{
// get vector of selected objects of active document to assure we have a valid selection
std::vector<Gui::SelectionObject> selection = Gui::Selection().getSelectionEx();
if (selection.size() == 0) {
QMessageBox::warning(this, tr("Selection error"), tr("Nothing selected!"));
return;
}
// assure we we are not in selection mode
exitSelectionMode();
clearButtons(none);
@@ -177,7 +171,6 @@ void TaskFilletParameters::onRefDeleted(void)
// delete the selection backwards to assure the list index keeps valid for the deletion
for (int i = selectedList.count()-1; i > -1; i--) {
//QMessageBox::warning(this, tr("i"), QString::number(i));
QListWidgetItem* item = selectedList.at(i);
// get the fillet object
PartDesign::Fillet* pcFillet = static_cast<PartDesign::Fillet*>(DressUpView->getObject());

View File

@@ -181,12 +181,6 @@ void TaskThicknessParameters::clearButtons(const selectionModes notThis)
void TaskThicknessParameters::onRefDeleted(void)
{
// get vector of selected objects of active document to assure we have a valid selection
std::vector<Gui::SelectionObject> selection = Gui::Selection().getSelectionEx();
if (selection.size() == 0) {
QMessageBox::warning(this, tr("Selection error"), tr("Nothing selected!"));
return;
}
// assure we we are not in selection mode
exitSelectionMode();
clearButtons(none);