Salome HOME
Remove extra lines
authorvsv <vsv@opencascade.com>
Tue, 20 Nov 2018 10:59:02 +0000 (13:59 +0300)
committervsv <vsv@opencascade.com>
Tue, 20 Nov 2018 10:59:37 +0000 (13:59 +0300)
src/SHAPERGUI/SHAPERGUI_DataModel.cpp

index 015fde137be414ec2f8c02312835fb2ba1c307a1..a799ef0444b06d26ca63878f0fad4b4751fe8832 100644 (file)
@@ -78,20 +78,7 @@ bool SHAPERGUI_DataModel::open(const QString& thePath, CAM_Study* theStudy, QStr
     QString aCurrentFile = SUIT_Tools::addSlash(aTmpDir) + aFileName;
     XGUI_Workshop* aWorkShop = myModule->workshop();
     aWorkShop->openFile(aCurrentFile);
-    //QString aNewFile = SUIT_Tools::addSlash(aNewTmpDir) + aFileName;
-    //if (!QFile::copy(aCurrentFile, aNewFile))
-    //  isDone = false;
   }
-  //if (isDone) {
-  //  myTmpDirectory = aNewTmpDir;
-  //}
-  //else {
-  //  removeDirectory(aNewTmpDir);
-  //  myTmpDirectory = "";
-  //}
-
-  //SessionPtr aMgr = ModelAPI_Session::get();
-  //aMgr->load(qPrintable(aNewTmpDir));
 
   myModule->setIsOpened(true);
   return true;
@@ -113,7 +100,6 @@ bool SHAPERGUI_DataModel::save(QStringList& theFiles)
   bool isMultiFile = aResMgr ? aResMgr->booleanValue("Study", "multi_file", false) : false;
 
   std::string aTmpDir = aStudy->GetTmpDir(qPrintable(myStudyPath), isMultiFile);
-  //std::string aTmpDir = aStudy->GetTmpDir("", false);//true );
   QString aTmp = QString(aTmpDir.c_str());
   theFiles.append(aTmp);
 
@@ -125,18 +111,10 @@ bool SHAPERGUI_DataModel::save(QStringList& theFiles)
   aWorkShop->setCurrentDataFile(aTmp + "shaper.shaper");
   aWorkShop->onSave();
   QString aName = aWorkShop->currentDataFile();
-  std::string aa = aName.toStdString();
   aName.replace(QChar('\\'), QChar('/'));
   int aN = aName.lastIndexOf('/');
   theFiles.append(aName.right(aName.length() - aN - 1));
 
-  //std::list<std::string>::iterator aIt;
-  //for (aIt = aFileNames.begin(); aIt != aFileNames.end(); ++aIt) {
-  //  QString aName((*aIt).c_str());
-  //  aName.replace(QChar('\\'), QChar('/'));
-  //  int aN = aName.lastIndexOf('/');
-  //  theFiles.append(aName.right(aName.length() - aN - 1));
-  //}
   return true;
 }
 
@@ -149,8 +127,6 @@ bool SHAPERGUI_DataModel::saveAs(const QString& thePath, CAM_Study* theStudy, QS
 bool SHAPERGUI_DataModel::close()
 {
   myModule->workshop()->closeDocument();
-  //removeDirectory(myTmpDirectory);
-  //myTmpDirectory = "";
   return LightApp_DataModel::close();
 }