CppCheck : Remove unused variables

This commit is contained in:
Magne Sjaastad
2017-09-07 21:30:33 +02:00
parent ad64340b75
commit b82cf1377d
4 changed files with 1 additions and 7 deletions

View File

@@ -46,8 +46,6 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneLateralsWell
RiaEclipseUnitTools::UnitSystem unitSystem = caseData->unitsType();
bool isMainBore = false;
std::vector<RigCompletionData> completionData;
for (const WellSegmentLocation& location : locations)
{
for (const WellSegmentLateral& lateral : location.laterals)

View File

@@ -691,8 +691,6 @@ void RigCaseCellResultsData::setMustBeCalculated(size_t scalarResultIndex)
//--------------------------------------------------------------------------------------------------
void RigCaseCellResultsData::eraseAllSourSimData()
{
std::vector<size_t> sourSimIndices;
for (size_t i = 0; i < m_resultInfos.size(); i++)
{
RigEclipseResultInfo& ri = m_resultInfos[i];

View File

@@ -92,7 +92,6 @@ RigNumberOfFloodedPoreVolumesCalculator::RigNumberOfFloodedPoreVolumesCalculator
// SWCR if defined
const std::vector<double>* swcrResults = nullptr;
std::vector<double> swcrActiveCellsResultStorage;
swcrResults = getResultIndexableStaticResult(actCellInfo, gridCellResults, "SWCR", porvActiveCellsResultStorage);
std::vector<size_t> scalarResultIndexTracers;

View File

@@ -485,8 +485,7 @@ public:
resultsToAdd->at(tsId).resize(connectionCount, HUGE_VAL);
}
std::vector<double> readBuffer;
double * internalMatrixData = nullptr;
double* internalMatrixData = nullptr;
QDataStream socketStream(currentClient);
socketStream.setVersion(riOctavePlugin::qtDataStreamVersion);