mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4348 System , cppcheck : Remove unused variables
This commit is contained in:
parent
ca72e6ab89
commit
8cefcbb562
@ -731,7 +731,6 @@ std::vector<std::pair<RigCompletionDataGridCell, std::vector<RigCompletionData>>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set<size_t> cellsTaken;
|
|
||||||
std::vector<std::pair<RigCompletionDataGridCell, std::vector<RigCompletionData>>> result;
|
std::vector<std::pair<RigCompletionDataGridCell, std::vector<RigCompletionData>>> result;
|
||||||
|
|
||||||
// Walk along well path
|
// Walk along well path
|
||||||
|
@ -154,7 +154,6 @@ QStringList RifSummaryCaseRestartSelector::gridCaseFiles() const
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RifSummaryCaseRestartSelector::determineFilesToImport(const std::vector<RifSummaryCaseFileImportInfo>& initialFiles)
|
void RifSummaryCaseRestartSelector::determineFilesToImport(const std::vector<RifSummaryCaseFileImportInfo>& initialFiles)
|
||||||
{
|
{
|
||||||
std::vector<RifSummaryCaseFileImportInfo> fileInfos;
|
|
||||||
if (m_showDialog)
|
if (m_showDialog)
|
||||||
{
|
{
|
||||||
bool enableApplyToAllField = initialFiles.size() > 1;
|
bool enableApplyToAllField = initialFiles.size() > 1;
|
||||||
|
@ -224,7 +224,6 @@ RigFemScalarResultFrames* RigFemPartResultsCollection::findOrLoadScalarResult(in
|
|||||||
{
|
{
|
||||||
std::map<std::string, std::vector<float>> elementProperties = m_elementPropertyReader->readAllElementPropertiesInFileContainingField(resVarAddr.fieldName);
|
std::map<std::string, std::vector<float>> elementProperties = m_elementPropertyReader->readAllElementPropertiesInFileContainingField(resVarAddr.fieldName);
|
||||||
|
|
||||||
std::vector<RigFemScalarResultFrames*> resultsForEachComponent;
|
|
||||||
for (std::pair< std::string, std::vector<float>> elem : elementProperties)
|
for (std::pair< std::string, std::vector<float>> elem : elementProperties)
|
||||||
{
|
{
|
||||||
RigFemResultAddress addressForElement(RIG_ELEMENT, elem.first, "");
|
RigFemResultAddress addressForElement(RIG_ELEMENT, elem.first, "");
|
||||||
|
@ -94,7 +94,6 @@ cvf::ref<RigPolyLinesData> RimUserDefinedPolylinesAnnotation::polyLinesData()
|
|||||||
{
|
{
|
||||||
cvf::ref<RigPolyLinesData> pld = new RigPolyLinesData;
|
cvf::ref<RigPolyLinesData> pld = new RigPolyLinesData;
|
||||||
std::vector<cvf::Vec3d> line;
|
std::vector<cvf::Vec3d> line;
|
||||||
std::vector<std::vector<cvf::Vec3d> > lines;
|
|
||||||
for (const RimPolylineTarget* target : m_targets)
|
for (const RimPolylineTarget* target : m_targets)
|
||||||
{
|
{
|
||||||
line.push_back(target->targetPointXYZ());
|
line.push_back(target->targetPointXYZ());
|
||||||
|
@ -965,7 +965,6 @@ std::vector<QString> RimProject::simulationWellNames() const
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimWellPath* RimProject::wellPathFromSimWellName(const QString& simWellName, int branchIndex)
|
RimWellPath* RimProject::wellPathFromSimWellName(const QString& simWellName, int branchIndex)
|
||||||
{
|
{
|
||||||
std::vector<RimWellPath*> paths;
|
|
||||||
for (RimWellPath* const path : allWellPaths())
|
for (RimWellPath* const path : allWellPaths())
|
||||||
{
|
{
|
||||||
if (QString::compare(path->associatedSimulationWellName(), simWellName) == 0 &&
|
if (QString::compare(path->associatedSimulationWellName(), simWellName) == 0 &&
|
||||||
|
@ -149,8 +149,6 @@ double RigEclipseToStimPlanCalculator::areaWeightedMatrixPermeability() const
|
|||||||
RiaWeightedMeanCalculator<double> calc;
|
RiaWeightedMeanCalculator<double> calc;
|
||||||
|
|
||||||
{
|
{
|
||||||
std::map<size_t, double> reservoirCellAndIntersectedArea;
|
|
||||||
|
|
||||||
for (const auto& singleCellCalc : m_singleFractureCellCalculators)
|
for (const auto& singleCellCalc : m_singleFractureCellCalculators)
|
||||||
{
|
{
|
||||||
const RigEclipseToStimPlanCellTransmissibilityCalculator& calulator = singleCellCalc.second;
|
const RigEclipseToStimPlanCellTransmissibilityCalculator& calulator = singleCellCalc.second;
|
||||||
|
@ -686,7 +686,6 @@ std::vector<cvf::Vec3d> RigCellGeometryTools::unionOfPolygons(const std::vector<
|
|||||||
std::vector<cvf::Vec3d> unionPolygon;
|
std::vector<cvf::Vec3d> unionPolygon;
|
||||||
for (ClipperLib::Path pathInSol : solution)
|
for (ClipperLib::Path pathInSol : solution)
|
||||||
{
|
{
|
||||||
std::vector<cvf::Vec3d> clippedPolygon;
|
|
||||||
for (ClipperLib::IntPoint IntPosition : pathInSol)
|
for (ClipperLib::IntPoint IntPosition : pathInSol)
|
||||||
{
|
{
|
||||||
unionPolygon.push_back(fromClipperPoint(IntPosition));
|
unionPolygon.push_back(fromClipperPoint(IntPosition));
|
||||||
|
@ -2076,7 +2076,6 @@ void RiuMainWindow::clearWindowTiling()
|
|||||||
{
|
{
|
||||||
QMdiArea::WindowOrder currentActivationOrder = m_mdiArea->activationOrder();
|
QMdiArea::WindowOrder currentActivationOrder = m_mdiArea->activationOrder();
|
||||||
|
|
||||||
std::list<QMdiSubWindow*> windowList;
|
|
||||||
for (QMdiSubWindow* subWindow : m_mdiArea->subWindowList(currentActivationOrder))
|
for (QMdiSubWindow* subWindow : m_mdiArea->subWindowList(currentActivationOrder))
|
||||||
{
|
{
|
||||||
subWindow->hide();
|
subWindow->hide();
|
||||||
|
@ -886,7 +886,6 @@ void RiuPlotMainWindow::clearWindowTiling()
|
|||||||
{
|
{
|
||||||
QMdiArea::WindowOrder currentActivationOrder = m_mdiArea->activationOrder();
|
QMdiArea::WindowOrder currentActivationOrder = m_mdiArea->activationOrder();
|
||||||
|
|
||||||
std::list<QMdiSubWindow*> windowList;
|
|
||||||
for (QMdiSubWindow* subWindow : m_mdiArea->subWindowList(currentActivationOrder))
|
for (QMdiSubWindow* subWindow : m_mdiArea->subWindowList(currentActivationOrder))
|
||||||
{
|
{
|
||||||
subWindow->hide();
|
subWindow->hide();
|
||||||
|
@ -264,7 +264,6 @@ std::vector<RiaSummaryCurveDefinition> RiuSummaryCurveDefSelection::allCurveDefi
|
|||||||
|
|
||||||
for (SummarySource* currSource : selectedSummarySources())
|
for (SummarySource* currSource : selectedSummarySources())
|
||||||
{
|
{
|
||||||
std::vector<SummarySource*> sourceSources;
|
|
||||||
RimSummaryCaseCollection* ensemble = dynamic_cast<RimSummaryCaseCollection*>(currSource);
|
RimSummaryCaseCollection* ensemble = dynamic_cast<RimSummaryCaseCollection*>(currSource);
|
||||||
RimSummaryCase* sumCase = dynamic_cast<RimSummaryCase*>(currSource);
|
RimSummaryCase* sumCase = dynamic_cast<RimSummaryCase*>(currSource);
|
||||||
|
|
||||||
@ -321,7 +320,6 @@ std::vector<RiaCurveSetDefinition> RiuSummaryCurveDefSelection::allCurveSetDefin
|
|||||||
RimSummaryCaseCollection* ensemble = dynamic_cast<RimSummaryCaseCollection*>(currSource);
|
RimSummaryCaseCollection* ensemble = dynamic_cast<RimSummaryCaseCollection*>(currSource);
|
||||||
if (!ensemble) continue;
|
if (!ensemble) continue;
|
||||||
|
|
||||||
std::vector<SummarySource*> sourceSources;
|
|
||||||
std::set<RifEclipseSummaryAddress> addressesFromSource;
|
std::set<RifEclipseSummaryAddress> addressesFromSource;
|
||||||
|
|
||||||
// Build case list
|
// Build case list
|
||||||
@ -580,7 +578,6 @@ QList<caf::PdmOptionItemInfo> RiuSummaryCurveDefSelection::calculateValueOptions
|
|||||||
if (fieldNeedingOptions == &m_selectedSources)
|
if (fieldNeedingOptions == &m_selectedSources)
|
||||||
{
|
{
|
||||||
RimProject* proj = RiaApplication::instance()->project();
|
RimProject* proj = RiaApplication::instance()->project();
|
||||||
std::vector<RimSummaryCase*> topLevelCases;
|
|
||||||
std::vector<RimOilField*> oilFields;
|
std::vector<RimOilField*> oilFields;
|
||||||
|
|
||||||
proj->allOilFields(oilFields);
|
proj->allOilFields(oilFields);
|
||||||
|
Loading…
Reference in New Issue
Block a user