Janitor : Remove unused variables

This commit is contained in:
Magne Sjaastad 2020-12-14 20:06:37 +01:00
parent 877ff8e376
commit 9f1c1264cf
3 changed files with 6 additions and 10 deletions

View File

@ -210,10 +210,9 @@ bool RimStimPlanModelElasticPropertyCalculator::calculate( RiaDefines::CurveProp
CAF_ASSERT( tvDepthValues.size() == poroValues.size() ); CAF_ASSERT( tvDepthValues.size() == poroValues.size() );
CAF_ASSERT( tvDepthValues.size() == formationValues.size() ); CAF_ASSERT( tvDepthValues.size() == formationValues.size() );
bool isScaledByNetToGross = false; bool isScaledByNetToGross = false;
double netToGrossCutoff = 1.0; double netToGrossCutoff = 1.0;
QString netToGrossFaciesName = ""; QString netToGrossFaciesName = "";
QString netToGrossFormationName = "";
if ( stimPlanModel->stimPlanModelTemplate() && stimPlanModel->stimPlanModelTemplate()->nonNetLayers() ) if ( stimPlanModel->stimPlanModelTemplate() && stimPlanModel->stimPlanModelTemplate()->nonNetLayers() )
{ {
isScaledByNetToGross = stimPlanModel->isScaledByNetToGross( curveProperty ) && !netToGrossValues.empty() && isScaledByNetToGross = stimPlanModel->isScaledByNetToGross( curveProperty ) && !netToGrossValues.empty() &&

View File

@ -73,7 +73,6 @@ bool RiuCellAndNncPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& eve
uint firstPartTriangleIndex = cvf::UNDEFINED_UINT; uint firstPartTriangleIndex = cvf::UNDEFINED_UINT;
cvf::Vec3d localIntersectionPoint( cvf::Vec3d::ZERO ); cvf::Vec3d localIntersectionPoint( cvf::Vec3d::ZERO );
cvf::Vec3d globalIntersectionPoint( cvf::Vec3d::ZERO );
size_t nncIndex = cvf::UNDEFINED_SIZE_T; size_t nncIndex = cvf::UNDEFINED_SIZE_T;
{ {
@ -92,10 +91,9 @@ bool RiuCellAndNncPickEventHandler::handle3dPickEvent( const Ric3dPickEvent& eve
if ( indexToFirstNoneNncItem != cvf::UNDEFINED_SIZE_T ) if ( indexToFirstNoneNncItem != cvf::UNDEFINED_SIZE_T )
{ {
localIntersectionPoint = pickItemInfos[indexToFirstNoneNncItem].localPickedPoint(); localIntersectionPoint = pickItemInfos[indexToFirstNoneNncItem].localPickedPoint();
globalIntersectionPoint = pickItemInfos[indexToFirstNoneNncItem].globalPickedPoint(); firstHitPart = pickItemInfos[indexToFirstNoneNncItem].pickedPart();
firstHitPart = pickItemInfos[indexToFirstNoneNncItem].pickedPart(); firstPartTriangleIndex = pickItemInfos[indexToFirstNoneNncItem].faceIdx();
firstPartTriangleIndex = pickItemInfos[indexToFirstNoneNncItem].faceIdx();
} }
if ( indexToNncItemNearFirstItem != cvf::UNDEFINED_SIZE_T ) if ( indexToNncItemNearFirstItem != cvf::UNDEFINED_SIZE_T )

View File

@ -87,7 +87,6 @@ bool RiuWellLogPlot::showYAxis( int row, int column ) const
void RiuWellLogPlot::reinsertScrollbar() void RiuWellLogPlot::reinsertScrollbar()
{ {
QList<QPointer<RiuQwtPlotWidget>> plotWidgets = this->visiblePlotWidgets(); QList<QPointer<RiuQwtPlotWidget>> plotWidgets = this->visiblePlotWidgets();
QList<QPointer<RiuQwtPlotLegend>> legends = this->legendsForVisiblePlots();
int colCount = this->m_gridLayout->columnCount(); int colCount = this->m_gridLayout->columnCount();
m_gridLayout->addLayout( m_trackScrollBarLayout, 2, colCount, 1, 1 ); m_gridLayout->addLayout( m_trackScrollBarLayout, 2, colCount, 1, 1 );