From 41a5eae59322772fc2cb230fad140dea9c51973c Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 18 Nov 2022 13:19:37 +0300 Subject: [PATCH] [bos #29098] Remove useless code staying after previous fix. --- src/SHAPERGUI/SHAPERGUI.cpp | 4 ---- src/SHAPERGUI/SHAPERGUI.h | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/SHAPERGUI/SHAPERGUI.cpp b/src/SHAPERGUI/SHAPERGUI.cpp index acc61de03..90261d4c9 100644 --- a/src/SHAPERGUI/SHAPERGUI.cpp +++ b/src/SHAPERGUI/SHAPERGUI.cpp @@ -330,8 +330,6 @@ bool SHAPERGUI::activateModule(SUIT_Study* theStudy) else myWorkshop->updateCommandStatus(); } - SUIT_ResourceMgr* aResMgr = application()->resourceMgr(); - myIsStorePositions = aResMgr->booleanValue("Study", "store_positions", true); myIsEditEnabled = getApp()->isEditEnabled(); getApp()->setEditEnabled(false); @@ -463,8 +461,6 @@ bool SHAPERGUI::deactivateModule(SUIT_Study* theStudy) //myWorkshop->contextMenuMgr()->disconnectViewer(); - SUIT_ResourceMgr* aResMgr = application()->resourceMgr(); - aResMgr->setValue("Study", "store_positions", myIsStorePositions); getApp()->setEditEnabled(myIsEditEnabled); myOldSelectionColor.clear(); diff --git a/src/SHAPERGUI/SHAPERGUI.h b/src/SHAPERGUI/SHAPERGUI.h index 1135d894e..964d4bfe0 100644 --- a/src/SHAPERGUI/SHAPERGUI.h +++ b/src/SHAPERGUI/SHAPERGUI.h @@ -276,11 +276,7 @@ private slots: /// Flag of opened document state bool myIsOpened; - // the next parameters should be restored after this module deactivation - - /// The application value of the preferences parameter - bool myIsStorePositions; - + // the next parameter should be restored after this module deactivation /// The application value bool myIsEditEnabled; -- 2.39.2