Skip to content

Commit

Permalink
Refs #8020. Remove redundant method.
Browse files Browse the repository at this point in the history
We do not delete ranged workspaces as we are no longer storing them
in the ADS.
  • Loading branch information
arturbekasov committed Jan 27, 2014
1 parent 4f4cb0b commit 711fdcb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
Expand Up @@ -290,9 +290,6 @@ private slots:
/// Adds the workspaces in a range.
void plusRangeWorkspaces();

/// Delete ranged workspaces.
void deleteRangedWorkspaces();

/// Get group workspace name
QString getGroupName();

Expand Down
24 changes: 0 additions & 24 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysis.cpp
Expand Up @@ -1788,8 +1788,6 @@ void MuonAnalysis::inputFileChanged(const QStringList& files)
}
catch(std::exception& e)
{
deleteRangedWorkspaces();

QMessageBox::warning(this,"Mantid - MuonAnalysis", e.what());
}

Expand All @@ -1815,28 +1813,6 @@ void MuonAnalysis::plusRangeWorkspaces()
if (!alg->execute())
throw std::runtime_error("Error in adding range together.");
}
deleteRangedWorkspaces();
}


/**
* Delete ranged workspaces.
* TODO: remove, not needed anymore
*/
void MuonAnalysis::deleteRangedWorkspaces()
{
// Start at 1 because 0 is MuonAnalysis without a number
for (int i=1; i<m_previousFilenames.size(); ++i)
{
QString tempNum;
tempNum.setNum(i);
if (Mantid::API::AnalysisDataService::Instance().doesExist(m_workspace_name + tempNum.toStdString() ) )
Mantid::API::AnalysisDataService::Instance().remove(m_workspace_name + tempNum.toStdString() );
if (Mantid::API::AnalysisDataService::Instance().doesExist(m_workspace_name + tempNum.toStdString() + "_1") )
Mantid::API::AnalysisDataService::Instance().remove(m_workspace_name + tempNum.toStdString() + "_1");
if (Mantid::API::AnalysisDataService::Instance().doesExist(m_workspace_name + tempNum.toStdString() + "_2") )
Mantid::API::AnalysisDataService::Instance().remove(m_workspace_name + tempNum.toStdString() + "_2");
}
}

/**
Expand Down

0 comments on commit 711fdcb

Please sign in to comment.