System : Removed unused functions

This commit is contained in:
Magne Sjaastad 2015-10-26 10:16:27 +01:00
parent bbdb730372
commit f3f2cf1590
8 changed files with 1 additions and 92 deletions

View File

@ -108,25 +108,6 @@ RigGeoMechWellLogExtractor* RimWellLogPlotCollection::findOrCreateExtractor(RimW
return extractor.p();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellLogPlot* RimWellLogPlotCollection::wellLogPlotFromViewer(RiuWellLogPlot* viewer) const
{
CVF_ASSERT(viewer);
for (size_t pIdx = 0; pIdx < wellLogPlots.size(); pIdx++)
{
RimWellLogPlot* wellLogPlot = wellLogPlots[pIdx];
if (wellLogPlot->viewer() == viewer)
{
return wellLogPlot;
}
}
return NULL;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -53,8 +53,6 @@ public:
void removeExtractors(const RigCaseData* caseData);
void removeExtractors(const RigGeoMechCaseData* caseData);
RimWellLogPlot* wellLogPlotFromViewer(RiuWellLogPlot* viewer) const;
caf::PdmChildArrayField<RimWellLogPlot*> wellLogPlots;
private:
cvf::Collection<RigEclipseWellLogExtractor> m_extractors;

View File

@ -152,25 +152,6 @@ std::vector<double>& RigCaseCellResultsData::cellScalarResults(size_t scalarResu
return m_cellScalarResults[scalarResultIndex][timeStepIndex];
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RigCaseCellResultsData::cellScalarResult( size_t scalarResultIndex, size_t timeStepIndex, size_t resultValueIndex)
{
if (scalarResultIndex < resultCount() &&
timeStepIndex < m_cellScalarResults[scalarResultIndex].size() &&
resultValueIndex != cvf::UNDEFINED_SIZE_T &&
resultValueIndex < m_cellScalarResults[scalarResultIndex][timeStepIndex].size())
{
return m_cellScalarResults[scalarResultIndex][timeStepIndex][resultValueIndex];
}
else
{
return HUGE_VAL;
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -87,7 +87,6 @@ public:
const std::vector< std::vector<double> > & cellScalarResults(size_t scalarResultIndex) const;
std::vector< std::vector<double> > & cellScalarResults(size_t scalarResultIndex);
std::vector<double>& cellScalarResults(size_t scalarResultIndex, size_t timeStepIndex);
double cellScalarResult(size_t scalarResultIndex, size_t timeStepIndex, size_t resultValueIndex);
static RifReaderInterface::PorosityModelResultType convertFromProjectModelPorosityModel(RimDefines::PorosityModelType porosityModel);

View File

@ -102,22 +102,6 @@ const int * RigCaseToCaseCellMapper::masterCaseCellIndices(int dependentCaseRese
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigCaseToCaseCellMapper::storeMapping(int depCaseCellIdx, const std::vector<int>& masterCaseMatchingCells)
{
if (masterCaseMatchingCells.size() == 1)
{
m_masterCellOrIntervalIndex[depCaseCellIdx] = masterCaseMatchingCells[0];
}
else if (masterCaseMatchingCells.size() > 1)
{
m_masterCellOrIntervalIndex[depCaseCellIdx] = -((int)(m_masterCellIndexSeries.size()));
m_masterCellIndexSeries.push_back(masterCaseMatchingCells);
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -50,7 +50,6 @@ public:
private:
void storeMapping(int depCaseCellIdx, const std::vector<int>& masterCaseMatchingCells);
void addMapping(int depCaseCellIdx, int masterCaseMatchingCell);
void calculateEclToGeomCellMapping(RigMainGrid* masterEclGrid, RigFemPart* dependentFemPart, bool eclipseIsMaster);

View File

@ -1057,7 +1057,7 @@ bool RiuMainWindow::checkForDocumentModifications()
void RiuMainWindow::slotCloseProject()
{
RiaApplication* app = RiaApplication::instance();
bool ret = app->closeProject(true);
app->closeProject(true);
}
//--------------------------------------------------------------------------------------------------
@ -2165,38 +2165,6 @@ void RiuMainWindow::slotOpenUsersGuideInBrowserAction()
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuMainWindow::appendActionsContextMenuForPdmObject(caf::PdmObjectHandle* pdmObject, QMenu* menu)
{
if (!menu)
{
return;
}
caf::CmdFeatureManager* cmdFeatureMgr = caf::CmdFeatureManager::instance();
CVF_ASSERT(cmdFeatureMgr);
if (dynamic_cast<RimWellPathCollection*>(pdmObject))
{
menu->addAction(cmdFeatureMgr->action("RicWellPathsImportFileFeature"));
menu->addAction(cmdFeatureMgr->action("RicWellPathsImportSsihubFeature"));
}
else if (dynamic_cast<RimEclipseCaseCollection*>(pdmObject))
{
menu->addAction(cmdFeatureMgr->action("RicImportEclipseCaseFeature"));
menu->addAction(cmdFeatureMgr->action("RicImportInputEclipseCaseFeature"));
menu->addAction(cmdFeatureMgr->action("RicCreateGridCaseGroupFeature"));
}
else if (dynamic_cast<RimGeoMechModels*>(pdmObject))
{
#ifdef USE_ODB_API
menu->addAction(m_importGeoMechCaseAction);
#endif
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -102,7 +102,6 @@ public:
void setDefaultWindowSize();
void appendActionsContextMenuForPdmObject(caf::PdmObjectHandle* pdmObject, QMenu* menu);
void refreshDrawStyleActions();
void setExpanded(const caf::PdmUiItem* uiItem, bool expanded);