mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Removed unused code
This commit is contained in:
parent
2d5295cf74
commit
1654ab3c91
@ -833,8 +833,6 @@ void RiuMainWindow::slotAbout()
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::slotImportGeoMechModel()
|
||||
{
|
||||
if (checkForDocumentModifications())
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
|
||||
@ -857,15 +855,12 @@ void RiuMainWindow::slotImportGeoMechModel()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::slotOpenProject()
|
||||
{
|
||||
if (checkForDocumentModifications())
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
QString defaultDir = app->lastUsedDialogDirectory("BINARY_GRID");
|
||||
@ -882,8 +877,6 @@ void RiuMainWindow::slotOpenProject()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -945,36 +938,6 @@ void RiuMainWindow::slotInputMockModel()
|
||||
app->createInputMockModel();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiuMainWindow::checkForDocumentModifications()
|
||||
{
|
||||
// RiaApplication* app = RiaApplication::instance();
|
||||
// RISceneManager* project = app->sceneManager();
|
||||
// if (project && project->isModified())
|
||||
// {
|
||||
// QMessageBox msgBox(this);
|
||||
// msgBox.setIcon(QMessageBox::Warning);
|
||||
// msgBox.setText("The project has been modified.");
|
||||
// msgBox.setInformativeText("Do you want to save your changes?");
|
||||
// msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
|
||||
//
|
||||
// int ret = msgBox.exec();
|
||||
// if (ret == QMessageBox::Save)
|
||||
// {
|
||||
// project->saveAll();
|
||||
// }
|
||||
// else if (ret == QMessageBox::Cancel)
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -132,8 +132,6 @@ private:
|
||||
void createToolBars();
|
||||
void createDockPanels();
|
||||
|
||||
bool checkForDocumentModifications();
|
||||
|
||||
void updateRecentFileActions();
|
||||
|
||||
void storeTreeViewState();
|
||||
|
Loading…
Reference in New Issue
Block a user