From b82cf1377dbadb32b91d95bf8e814e81c1983d34 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 7 Sep 2017 21:30:33 +0200 Subject: [PATCH] CppCheck : Remove unused variables --- .../RicFishbonesTransmissibilityCalculationFeatureImp.cpp | 2 -- ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp | 2 -- .../RigNumberOfFloodedPoreVolumesCalculator.cpp | 1 - ApplicationCode/SocketInterface/RiaNNCCommands.cpp | 3 +-- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/ApplicationCode/Commands/CompletionCommands/RicFishbonesTransmissibilityCalculationFeatureImp.cpp b/ApplicationCode/Commands/CompletionCommands/RicFishbonesTransmissibilityCalculationFeatureImp.cpp index 4e0a4517a8..299ca7752f 100644 --- a/ApplicationCode/Commands/CompletionCommands/RicFishbonesTransmissibilityCalculationFeatureImp.cpp +++ b/ApplicationCode/Commands/CompletionCommands/RicFishbonesTransmissibilityCalculationFeatureImp.cpp @@ -46,8 +46,6 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneLateralsWell RiaEclipseUnitTools::UnitSystem unitSystem = caseData->unitsType(); bool isMainBore = false; - std::vector completionData; - for (const WellSegmentLocation& location : locations) { for (const WellSegmentLateral& lateral : location.laterals) diff --git a/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp b/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp index f78c4f3358..e5cd2ac3eb 100644 --- a/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp +++ b/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp @@ -691,8 +691,6 @@ void RigCaseCellResultsData::setMustBeCalculated(size_t scalarResultIndex) //-------------------------------------------------------------------------------------------------- void RigCaseCellResultsData::eraseAllSourSimData() { - std::vector sourSimIndices; - for (size_t i = 0; i < m_resultInfos.size(); i++) { RigEclipseResultInfo& ri = m_resultInfos[i]; diff --git a/ApplicationCode/ReservoirDataModel/RigNumberOfFloodedPoreVolumesCalculator.cpp b/ApplicationCode/ReservoirDataModel/RigNumberOfFloodedPoreVolumesCalculator.cpp index 0bfa206aa0..a47439a465 100644 --- a/ApplicationCode/ReservoirDataModel/RigNumberOfFloodedPoreVolumesCalculator.cpp +++ b/ApplicationCode/ReservoirDataModel/RigNumberOfFloodedPoreVolumesCalculator.cpp @@ -92,7 +92,6 @@ RigNumberOfFloodedPoreVolumesCalculator::RigNumberOfFloodedPoreVolumesCalculator // SWCR if defined const std::vector* swcrResults = nullptr; - std::vector swcrActiveCellsResultStorage; swcrResults = getResultIndexableStaticResult(actCellInfo, gridCellResults, "SWCR", porvActiveCellsResultStorage); std::vector scalarResultIndexTracers; diff --git a/ApplicationCode/SocketInterface/RiaNNCCommands.cpp b/ApplicationCode/SocketInterface/RiaNNCCommands.cpp index 80e35b543f..658b7860a3 100644 --- a/ApplicationCode/SocketInterface/RiaNNCCommands.cpp +++ b/ApplicationCode/SocketInterface/RiaNNCCommands.cpp @@ -485,8 +485,7 @@ public: resultsToAdd->at(tsId).resize(connectionCount, HUGE_VAL); } - std::vector readBuffer; - double * internalMatrixData = nullptr; + double* internalMatrixData = nullptr; QDataStream socketStream(currentClient); socketStream.setVersion(riOctavePlugin::qtDataStreamVersion);