Update to clang-16

Use runner Ubuntu 22.04 for clang-16
Remove unused code detected by clang-16
This commit is contained in:
Magne Sjaastad
2024-01-05 15:13:50 +01:00
committed by GitHub
parent 9ac518fbe0
commit ff6472c6b7
8 changed files with 30 additions and 32 deletions

View File

@@ -164,7 +164,6 @@ RimPolylinesFromFileAnnotation* RimAnnotationCollection::importOrUpdatePolylines
}
}
size_t newLinesIdx = 0;
for ( const QString& newFileName : newFileNames )
{
RimPolylinesFromFileAnnotation* newPolyLinesAnnot = new RimPolylinesFromFileAnnotation;
@@ -177,8 +176,6 @@ RimPolylinesFromFileAnnotation* RimAnnotationCollection::importOrUpdatePolylines
m_polylineFromFileAnnotations->addAnnotation( newPolyLinesAnnot );
polyLinesObjsToReload.push_back( newPolyLinesAnnot );
++newLinesIdx;
}
updateViewAnnotationCollections();

View File

@@ -377,7 +377,6 @@ void RimWellLogTrack::calculatePropertyValueZoomRange()
double maxValue = -HUGE_VAL;
size_t topologyCurveCount = 0;
size_t visibleCurves = 0u;
for ( const auto& curve : m_curves )
{
double minCurveValue = HUGE_VAL;
@@ -385,7 +384,6 @@ void RimWellLogTrack::calculatePropertyValueZoomRange()
if ( curve->isChecked() )
{
visibleCurves++;
if ( curve->propertyValueRangeInData( &minCurveValue, &maxCurveValue ) )
{
if ( minCurveValue < minValue )