mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove unused variables and functions
This commit is contained in:
parent
53a6e0e502
commit
305fdfcfc8
@ -608,49 +608,6 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompdatAndWpimultTables(
|
|||||||
RiaLogging::info(QString("Successfully exported completion data to %1").arg(filePath));
|
RiaLogging::info(QString("Successfully exported completion data to %1").arg(filePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
std::vector<RigCompletionData> RicWellPathExportCompletionDataFeatureImpl::getCompletionsForWellAndCompletionType(
|
|
||||||
const std::vector<RigCompletionData>& completions,
|
|
||||||
const QString& wellName,
|
|
||||||
RigCompletionData::CompletionType completionType)
|
|
||||||
{
|
|
||||||
std::vector<RigCompletionData> filteredCompletions;
|
|
||||||
for (const auto& completion : completions)
|
|
||||||
{
|
|
||||||
if (completion.wellName() == wellName && completion.completionType() == completionType)
|
|
||||||
{
|
|
||||||
filteredCompletions.push_back(completion);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return filteredCompletions;
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>
|
|
||||||
RicWellPathExportCompletionDataFeatureImpl::getCompletionsForWell(
|
|
||||||
const std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>& cellToCompletionMap,
|
|
||||||
const QString& wellName)
|
|
||||||
{
|
|
||||||
std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>> wellCompletions;
|
|
||||||
|
|
||||||
for (const auto& it : cellToCompletionMap)
|
|
||||||
{
|
|
||||||
for (auto& completion : it.second)
|
|
||||||
{
|
|
||||||
if (completion.wellName() == wellName)
|
|
||||||
{
|
|
||||||
wellCompletions[it.first].push_back(completion);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return wellCompletions;
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -173,14 +173,6 @@ private:
|
|||||||
const std::map<QString, std::vector<RigCompletionData>>& completionsPerGrid,
|
const std::map<QString, std::vector<RigCompletionData>>& completionsPerGrid,
|
||||||
RicExportCompletionDataSettingsUi::CompdatExportType exportType);
|
RicExportCompletionDataSettingsUi::CompdatExportType exportType);
|
||||||
|
|
||||||
static std::vector<RigCompletionData> getCompletionsForWellAndCompletionType(const std::vector<RigCompletionData>& completions,
|
|
||||||
const QString& wellName,
|
|
||||||
RigCompletionData::CompletionType completionType);
|
|
||||||
|
|
||||||
static std::map<RigCompletionDataGridCell, std::vector<RigCompletionData> >
|
|
||||||
getCompletionsForWell(const std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>& cellToCompletionMap,
|
|
||||||
const QString& wellName);
|
|
||||||
|
|
||||||
static void exportCompdatTableUsingFormatter(RifEclipseDataTableFormatter& formatter,
|
static void exportCompdatTableUsingFormatter(RifEclipseDataTableFormatter& formatter,
|
||||||
const QString& gridName,
|
const QString& gridName,
|
||||||
const std::vector<RigCompletionData>& completionData);
|
const std::vector<RigCompletionData>& completionData);
|
||||||
|
@ -53,7 +53,6 @@ void RigEclipseWellLogExtractor::calculateIntersection()
|
|||||||
{
|
{
|
||||||
std::map<RigMDCellIdxEnterLeaveKey, HexIntersectionInfo > uniqueIntersections;
|
std::map<RigMDCellIdxEnterLeaveKey, HexIntersectionInfo > uniqueIntersections;
|
||||||
|
|
||||||
const std::vector<cvf::Vec3d>& nodeCoords = m_caseData->mainGrid()->nodes();
|
|
||||||
bool isCellFaceNormalsOut = m_caseData->mainGrid()->isFaceNormalsOutwards();
|
bool isCellFaceNormalsOut = m_caseData->mainGrid()->isFaceNormalsOutwards();
|
||||||
|
|
||||||
if (m_wellPath->m_wellPathPoints.empty()) return;
|
if (m_wellPath->m_wellPathPoints.empty()) return;
|
||||||
|
@ -144,14 +144,3 @@ cvf::Vec3d RigWellPathIntersectionTools::calculateLengthInCell(const RigMainGrid
|
|||||||
|
|
||||||
return calculateLengthInCell(hexCorners, startPoint, endPoint);
|
return calculateLengthInCell(hexCorners, startPoint, endPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
std::vector<size_t> RigWellPathIntersectionTools::findCloseCells(const RigMainGrid* grid, const cvf::BoundingBox& bb)
|
|
||||||
{
|
|
||||||
std::vector<size_t> closeCells;
|
|
||||||
grid->findIntersectingCells(bb, &closeCells);
|
|
||||||
return closeCells;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -55,7 +55,4 @@ public:
|
|||||||
size_t cellIndex,
|
size_t cellIndex,
|
||||||
const cvf::Vec3d& startPoint,
|
const cvf::Vec3d& startPoint,
|
||||||
const cvf::Vec3d& endPoint);
|
const cvf::Vec3d& endPoint);
|
||||||
|
|
||||||
private:
|
|
||||||
static std::vector<size_t> findCloseCells(const RigMainGrid* grid, const cvf::BoundingBox& bb);
|
|
||||||
};
|
};
|
||||||
|
@ -639,7 +639,6 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
|
|||||||
bool allowActiveViewChange = dynamic_cast<Rim2dIntersectionView*>(m_viewer->ownerViewWindow()) == nullptr;
|
bool allowActiveViewChange = dynamic_cast<Rim2dIntersectionView*>(m_viewer->ownerViewWindow()) == nullptr;
|
||||||
|
|
||||||
size_t globalCellIndex = wellConnectionSourceInfo->globalCellIndexFromTriangleIndex(firstPartTriangleIndex);
|
size_t globalCellIndex = wellConnectionSourceInfo->globalCellIndexFromTriangleIndex(firstPartTriangleIndex);
|
||||||
double connectionFactor = wellConnectionSourceInfo->connectionFactorFromTriangleIndex(firstPartTriangleIndex);
|
|
||||||
|
|
||||||
RimEclipseView* eclipseView = dynamic_cast<RimEclipseView*>(m_reservoirView.p());
|
RimEclipseView* eclipseView = dynamic_cast<RimEclipseView*>(m_reservoirView.p());
|
||||||
if (eclipseView)
|
if (eclipseView)
|
||||||
|
Loading…
Reference in New Issue
Block a user