mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
[System] Cleaned up unused variables and functions
This commit is contained in:
parent
bb8475b0e1
commit
5ac3dea46d
@ -87,8 +87,6 @@ void RicAddWellLogToPlotFeature::onActionTriggered(bool isChecked)
|
||||
wellLog->firstAnchestorOrThisOfType(wellLogFile);
|
||||
if (wellLogFile)
|
||||
{
|
||||
size_t curveIdx = plotTrack->curveCount();
|
||||
|
||||
RimWellLogFileCurve* curve = new RimWellLogFileCurve;
|
||||
plotTrack->addCurve(curve);
|
||||
|
||||
|
@ -118,9 +118,6 @@ bool RicNewWellLogCurveExtractionFeature::caseAvailable() const
|
||||
RimWellLogExtractionCurve* RicNewWellLogCurveExtractionFeature::addCurve(RimWellLogTrack* plotTrack, RimView* view, RimWellPath* wellPath)
|
||||
{
|
||||
CVF_ASSERT(plotTrack);
|
||||
|
||||
size_t curveIndex = plotTrack->curveCount();
|
||||
|
||||
RimWellLogExtractionCurve* curve = new RimWellLogExtractionCurve();
|
||||
|
||||
cvf::Color3f curveColor = RicWellLogPlotCurveFeatureImpl::curveColorFromTable();
|
||||
|
@ -144,8 +144,6 @@ RimWellLogFileCurve* RicNewWellLogFileCurveFeature::addCurve(RimWellLogTrack* pl
|
||||
{
|
||||
CVF_ASSERT(plotTrack);
|
||||
|
||||
size_t curveIndex = plotTrack->curveCount();
|
||||
|
||||
RimWellLogFileCurve* curve = new RimWellLogFileCurve();
|
||||
plotTrack->addCurve(curve);
|
||||
|
||||
|
@ -119,8 +119,6 @@ void RivFemElmVisibilityCalculator::computePropertyVisibility(cvf::UByteArray* c
|
||||
// Do a "Hack" to use elm nodal and not nodal POR results
|
||||
if (resVarAddress.resultPosType == RIG_NODAL && resVarAddress.fieldName == "POR-Bar") resVarAddress.resultPosType = RIG_ELEMENT_NODAL;
|
||||
|
||||
size_t adjustedTimeStepIndex = timeStepIndex;
|
||||
|
||||
const RimCellFilter::FilterModeType filterType = propertyFilter->filterMode();
|
||||
|
||||
RigGeoMechCaseData* caseData = propFilterColl->reservoirView()->geoMechCase()->geoMechData();
|
||||
|
@ -177,7 +177,6 @@ void RivFemPartGeometryGenerator::computeArrays()
|
||||
{
|
||||
RigElementType eType = m_part->elementType(elmIdx);
|
||||
int faceCount = RigFemTypes::elmentFaceCount(eType);
|
||||
int elmQuadCount = 0;
|
||||
|
||||
const int* elmNodeIndices = m_part->connectivities(elmIdx);
|
||||
|
||||
@ -277,14 +276,11 @@ cvf::ref<cvf::DrawableGeo> RivFemPartGeometryGenerator::createMeshDrawableFromSi
|
||||
|
||||
RigElementType eType = part->elementType(elmIdx);
|
||||
int faceCount = RigFemTypes::elmentFaceCount(eType);
|
||||
int elmQuadCount = 0;
|
||||
|
||||
const int* elmNodeIndices = part->connectivities(elmIdx);
|
||||
|
||||
for (int lfIdx = 0; lfIdx < faceCount; ++lfIdx)
|
||||
{
|
||||
int elmNeighbor = part->elementNeighbor(static_cast<int>(elmIdx), lfIdx);
|
||||
|
||||
int faceNodeCount = 0;
|
||||
const int* localElmNodeIndicesForFace = RigFemTypes::localElmNodeIndicesForFace(eType, lfIdx, &faceNodeCount);
|
||||
if (faceNodeCount == 4)
|
||||
|
@ -317,23 +317,6 @@ RimCaseCollection* RimEclipseCase::parentCaseCollection()
|
||||
return dynamic_cast<RimCaseCollection*>(this->parentField()->ownerObject());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimIdenticalGridCaseGroup* RimEclipseCase::parentGridCaseGroup()
|
||||
{
|
||||
RimCaseCollection* caseColl = parentCaseCollection();
|
||||
if (caseColl)
|
||||
{
|
||||
return caseColl->parentCaseGroup();
|
||||
}
|
||||
else
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -82,7 +82,6 @@ public:
|
||||
|
||||
|
||||
RimCaseCollection* parentCaseCollection();
|
||||
RimIdenticalGridCaseGroup* parentGridCaseGroup();
|
||||
|
||||
virtual std::vector<RimView*> views();
|
||||
virtual QStringList timeStepStrings();
|
||||
|
@ -329,36 +329,6 @@ void RimEclipseInputCase::loadAndSyncronizeInputProperties()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseInputCase::removeProperty(RimEclipseInputProperty* inputProperty)
|
||||
{
|
||||
bool isPropertyFileReferencedByOthers = false;
|
||||
|
||||
m_inputPropertyCollection->removeInputProperty(inputProperty, isPropertyFileReferencedByOthers);
|
||||
if (!isPropertyFileReferencedByOthers)
|
||||
{
|
||||
std::vector<QString> newList;
|
||||
size_t i;
|
||||
for (i = 0; i < m_additionalFileNames().size(); i++)
|
||||
{
|
||||
if (m_additionalFileNames()[i] != inputProperty->fileName)
|
||||
{
|
||||
newList.push_back(m_additionalFileNames()[i]);
|
||||
}
|
||||
}
|
||||
|
||||
m_additionalFileNames.v() = newList;
|
||||
}
|
||||
|
||||
// Remove the results pointed to by this input property
|
||||
RigCaseCellResultsData* results = reservoirData()->results(RifReaderInterface::MATRIX_RESULTS);
|
||||
results->removeResult(inputProperty->resultName);
|
||||
|
||||
this->removeResult(inputProperty->resultName);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -51,8 +51,6 @@ public:
|
||||
void openDataFileSet(const QStringList& fileNames);
|
||||
void loadAndSyncronizeInputProperties();
|
||||
|
||||
void removeProperty(RimEclipseInputProperty* inputProperty);
|
||||
|
||||
// RimCase overrides
|
||||
virtual bool openEclipseGridFile(); // Find grid file among file set. Read, Find read and validate property date. Syncronize child property sets.
|
||||
|
||||
|
@ -1024,7 +1024,7 @@ void RiuMainWindow::slotInputMockModel()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiuMainWindow::checkForDocumentModifications()
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
// RiaApplication* app = RiaApplication::instance();
|
||||
// RISceneManager* project = app->sceneManager();
|
||||
// if (project && project->isModified())
|
||||
// {
|
||||
|
@ -148,14 +148,11 @@ void RiuMultiCaseImportDialog::on_m_removeSearchFolderButton_clicked()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMultiCaseImportDialog::updateGridFileList()
|
||||
{
|
||||
|
||||
QStringList folderNames = m_searchFolders->stringList();
|
||||
QStringList gridFileNames;
|
||||
|
||||
|
||||
// Filter the search folders to remove subfolders of existing roots'
|
||||
|
||||
bool okToAdd = true;
|
||||
QStringList searchFoldersToRemove;
|
||||
|
||||
for (int i = 0; i < folderNames.size(); ++i)
|
||||
|
@ -192,8 +192,6 @@ void RiuSelectionChangedHandler::addCurveFromSelectionItem(const RiuSelectionIte
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuSelectionChangedHandler::scheduleUpdateForAllVisibleViews() const
|
||||
{
|
||||
RiuMainWindow* mainWnd = RiuMainWindow::instance();
|
||||
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
if (proj)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user