mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4348 System , cppcheck : Remove unused functions
This commit is contained in:
@@ -780,86 +780,6 @@ std::vector<std::pair<RigCompletionDataGridCell, std::vector<RigCompletionData>>
|
||||
return result;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
//std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>>
|
||||
// RicExportLgrFeature::cellsIntersectingCompletions_PerCompletion_old(RimEclipseCase* eclipseCase,
|
||||
// const RimWellPath* wellPath,
|
||||
// size_t timeStep,
|
||||
// const std::set<RigCompletionData::CompletionType>& completionTypes,
|
||||
// bool* isIntersectingOtherLgrs)
|
||||
//{
|
||||
// std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>> completionToCells;
|
||||
//
|
||||
// *isIntersectingOtherLgrs = false;
|
||||
//
|
||||
// auto wellPathGeometry = wellPath->wellPathGeometry();
|
||||
// auto completions = eclipseCase->computeAndGetVirtualPerforationTransmissibilities();
|
||||
// if (wellPathGeometry && completions)
|
||||
// {
|
||||
// const auto& intCells = completions->multipleCompletionsPerEclipseCell(wellPath, timeStep);
|
||||
// CompletionInfo lastCompletionInfo;
|
||||
//
|
||||
// auto wpIntCells = RigWellPathIntersectionTools::findCellIntersectionInfosAlongPath(eclipseCase->eclipseCaseData(),
|
||||
// wellPathGeometry->wellPathPoints(),
|
||||
// wellPathGeometry->measureDepths());
|
||||
//
|
||||
// auto wpComplCells = createOrderedIntersectionList(wpIntCells, intCells);
|
||||
//
|
||||
// // This loop assumes that cells are ordered downwards along well path
|
||||
// for (auto intCell : wpComplCells)
|
||||
// {
|
||||
// if (!intCell.first.isMainGridCell())
|
||||
// {
|
||||
// *isIntersectingOtherLgrs = true;
|
||||
// continue;
|
||||
// }
|
||||
//
|
||||
// auto filteredCompletions = filterCompletionsOnType(intCell.second, completionTypes);
|
||||
// if (filteredCompletions.empty()) continue;
|
||||
//
|
||||
// auto completion = findCompletionByPriority(filteredCompletions);
|
||||
//
|
||||
// QString name = completionName(completion.sourcePdmObject());
|
||||
// CompletionInfo completionInfo(completion.completionType(), name, 0);
|
||||
//
|
||||
// if (!lastCompletionInfo.isValid()) lastCompletionInfo = completionInfo;
|
||||
//
|
||||
// if (completionInfo != lastCompletionInfo && completionToCells.count(completionInfo) > 0)
|
||||
// {
|
||||
// completionInfo.number++;
|
||||
// }
|
||||
// completionToCells[completionInfo].push_back(intCell.first);
|
||||
// lastCompletionInfo = completionInfo;
|
||||
// }
|
||||
// }
|
||||
// return completionToCells;
|
||||
//}
|
||||
|
||||
|
||||
template<typename T>
|
||||
void appendVector(std::vector<T>& dest, const std::vector<T>& append)
|
||||
{
|
||||
dest.insert(dest.end(), append.begin(), append.end());
|
||||
}
|
||||
|
||||
void appendIntersectedCells(std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>& dest,
|
||||
const std::map<RigCompletionDataGridCell, std::vector<RigCompletionData>>& append)
|
||||
{
|
||||
for (auto& intCell : append)
|
||||
{
|
||||
if (dest.count(intCell.first) == 0)
|
||||
{
|
||||
dest.insert(intCell);
|
||||
}
|
||||
else
|
||||
{
|
||||
appendVector(dest[intCell.first], intCell.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -213,12 +213,6 @@ private:
|
||||
size_t timeStep,
|
||||
const std::set<RigCompletionData::CompletionType>& completionTypes,
|
||||
bool* isIntersectingOtherLgrs);
|
||||
//static std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>>
|
||||
// cellsIntersectingCompletions_PerCompletion_old(RimEclipseCase* eclipseCase,
|
||||
// const RimWellPath* wellPath,
|
||||
// size_t timeStep,
|
||||
// const std::set<RigCompletionData::CompletionType>& completionTypes,
|
||||
// bool* isIntersectingOtherLgrs);
|
||||
|
||||
static std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>>
|
||||
cellsIntersectingCompletions_PerCompletion(RimEclipseCase* eclipseCase,
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "RimGridView.h"
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
|
||||
#include "RicHoloLensSessionManager.h"
|
||||
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include <QAction>
|
||||
|
||||
CAF_CMD_SOURCE_INIT(RicHoloLensCreateDummyFiledBackedSessionFeature, "RicHoloLensCreateDummyFiledBackedSessionFeature");
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
|
||||
#include "RicHoloLensCreateSessionFeature.h"
|
||||
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "RicHoloLensCreateSessionUi.h"
|
||||
#include "RicHoloLensServerSettings.h"
|
||||
#include "RicHoloLensSessionManager.h"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include "RicHoloLensSession.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaQIconTools.h"
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include "RimGridView.h"
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include "RicHoloLensSessionManager.h"
|
||||
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaQIconTools.h"
|
||||
|
||||
#include "cafCmdFeatureManager.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user