remove unnecessary code and comment
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user