CppCheck : Remove unused variables

This commit is contained in:
Magne Sjaastad
2020-10-09 13:43:31 +02:00
parent f9a402b0f9
commit 53c39cdc73
19 changed files with 24 additions and 81 deletions

View File

@@ -103,8 +103,6 @@ void RigGeoMechWellLogExtractor::performCurveDataSmoothing( int
if ( !mds->empty() && !values->empty() )
{
std::vector<std::vector<double>*> dependentValues = {tvds, &interfaceShValuesDbl, &interfacePorePressuresDbl};
std::vector<unsigned char> smoothOrFilterSegments = determineFilteringOrSmoothing( interfacePorePressuresDbl );
smoothSegments( mds, tvds, values, interfaceShValuesDbl, smoothOrFilterSegments, smoothingTreshold );
@@ -577,14 +575,6 @@ void RigGeoMechWellLogExtractor::wellBoreWallCurveData( const RigFemResultAddres
RigFemResultAddress stressResAddr( RIG_ELEMENT_NODAL, "ST", "" );
RigFemResultAddress porBarResAddr( RIG_ELEMENT_NODAL, "POR-Bar", "" );
// Allow POR as an element property value
RigFemResultAddress ppSandElementPropertyAddr =
RigWbsParameter::PP_Reservoir().femAddress( RigWbsParameter::ELEMENT_PROPERTY_TABLE );
RigFemResultAddress poissonResAddr =
RigWbsParameter::poissonRatio().femAddress( RigWbsParameter::ELEMENT_PROPERTY_TABLE );
RigFemResultAddress ucsResAddr = RigWbsParameter::UCS().femAddress( RigWbsParameter::ELEMENT_PROPERTY_TABLE );
RigFemPartResultsCollection* resultCollection = m_caseData->femPartResults();
// Load results

View File

@@ -861,10 +861,9 @@ void GeometryTools::calculatePartiallyFreeCubeFacePolygon(
// Check for holes
bool hasHoles = false;
for ( size_t i = 0; i < isConnectionPolygonMerged.size(); ++i )
{
hasHoles = !isConnectionPolygonMerged[i];
bool hasHoles = !isConnectionPolygonMerged[i];
if ( hasHoles )
{
*m_partiallyFreeCubeFaceHasHoles = true;