From 16e797362a4eb170f8ea991797942a36adc2ae45 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 22 Oct 2021 19:06:57 +0200 Subject: [PATCH] PD: [skip ci] code cleanup --- src/Mod/PartDesign/Gui/ViewProvider.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Mod/PartDesign/Gui/ViewProvider.cpp b/src/Mod/PartDesign/Gui/ViewProvider.cpp index dff2defa82..55396796af 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.cpp +++ b/src/Mod/PartDesign/Gui/ViewProvider.cpp @@ -64,23 +64,8 @@ ViewProvider::~ViewProvider() bool ViewProvider::doubleClicked(void) { -#if 0 - // TODO May be move to setEdit()? (2015-07-26, Fat-Zer) - if (body != NULL) { - // Drop into insert mode so that the user doesn't see all the geometry that comes later in the tree - // Also, this way the user won't be tempted to use future geometry as external references for the sketch - oldTip = body->Tip.getValue(); - if (oldTip != this->pcObject) - Gui::Command::doCommand(Gui::Command::Gui,"FreeCADGui.runCommand('PartDesign_MoveTip')"); - else - oldTip = NULL; - } else { - oldTip = NULL; - } -#endif - try { - PartDesign::Body* body = PartDesign::Body::findBodyOf(getObject()); + PartDesign::Body* body = PartDesign::Body::findBodyOf(getObject()); std::string Msg("Edit "); Msg += this->pcObject->Label.getValue(); Gui::Command::openCommand(Msg.c_str());