Commit 4ed9c229 authored by Sean McBride's avatar Sean McBride
Browse files

Removed a bunch of useless return statements at end of methods

Found and auto-fixed by clang-tidy’s readability-redundant-control-flow check.

Though I did have to manualy fix whitespace after it.
parent 55d265de
......@@ -153,7 +153,6 @@ vtkIdType vtkChart::GetNumberOfAxes()
//-----------------------------------------------------------------------------
void vtkChart::RecalculateBounds()
{
return;
}
//-----------------------------------------------------------------------------
......
......@@ -413,7 +413,6 @@ void vtkChartParallelCoordinates::CalculatePlotTransform()
//-----------------------------------------------------------------------------
void vtkChartParallelCoordinates::RecalculateBounds()
{
return;
}
//-----------------------------------------------------------------------------
......
......@@ -146,7 +146,6 @@ void vtkColorTransferFunctionItem::ComputeTexture()
}
}
delete [] values;
return;
}
//-----------------------------------------------------------------------------
......
......@@ -144,5 +144,4 @@ void vtkCompositeTransferFunctionItem::ComputeTexture()
}
}
delete [] values;
return;
}
......@@ -129,5 +129,4 @@ void vtkLookupTableItem::ComputeTexture()
ptr+=4;
}
}
return;
}
......@@ -146,5 +146,4 @@ void vtkPiecewiseFunctionItem::ComputeTexture()
}
}
delete[] values;
return;
}
......@@ -1013,7 +1013,6 @@ void vtkPlotBar::SelectColorArray(const vtkStdString& arrayName)
vtkDebugMacro(<< "SelectColorArray called with invalid column name.");
this->ColorArrayName = "";
this->Modified();
return;
}
//-----------------------------------------------------------------------------
......
......@@ -479,7 +479,6 @@ void vtkPlotParallelCoordinates::SelectColorArray(const vtkStdString &arrayName)
vtkDebugMacro(<< "SelectColorArray called with invalid column name.");
this->ColorArrayName = "";
this->Modified();
return;
}
//-----------------------------------------------------------------------------
......
......@@ -996,7 +996,6 @@ void vtkPlotPoints::SelectColorArray(const vtkStdString& arrayName)
vtkDebugMacro(<< "SelectColorArray called with invalid column name.");
this->ColorArrayName = "";
this->Modified();
return;
}
//-----------------------------------------------------------------------------
......
......@@ -697,8 +697,6 @@ void vtkLookupTable::GetColorAsUnsignedChars(const double colorIn[4],
else if (v > 1.0) { v = 1.0; }
colorOut[c] = static_cast<unsigned char>( v * 255.0 + 0.5 );
}
return;
}
//----------------------------------------------------------------------------
......
......@@ -125,7 +125,6 @@ void DrawTriangles(double* p1, double* q1, double* r1,
// Render and interact
renderWindow->Render();
renderWindowInteractor->Start();
return;
}
}
......
......@@ -1020,8 +1020,6 @@ void vtkCellLocator::GetBucketNeighbors(int ijk[3], int ndivs, int level)
}
}
}
return;
}
//----------------------------------------------------------------------------
......
......@@ -205,7 +205,6 @@ void vtkCellTypes::InsertCell(int cellId, unsigned char type, int loc)
{
this->MaxId = cellId;
}
return;
}
//----------------------------------------------------------------------------
......
......@@ -324,7 +324,6 @@ void vtkDataObject::RemoveNamedFieldInformation(vtkInformation *info,
return;
}
}
return;
}
//----------------------------------------------------------------------------
......
......@@ -3226,7 +3226,6 @@ void vtkHyperOctreeLightWeightCursor::ToChild(int child)
this->IsLeaf=node->IsChildLeaf(child);
this->Level += 1;
}
return;
}
......
......@@ -680,8 +680,6 @@ void vtkImageData::GetPoint(vtkIdType ptId, double x[3])
{
x[i] = origin[i] + (loc[i]+extent[i*2]) * spacing[i];
}
return;
}
//----------------------------------------------------------------------------
......
......@@ -294,8 +294,6 @@ void vtkKdTree::DeleteCellLists()
}
this->InitializeCellLists();
return;
}
//----------------------------------------------------------------------------
......@@ -552,8 +550,6 @@ void vtkKdTree::GetRegionsAtLevel(int level, vtkKdNode **nodes)
}
vtkKdTree::_GetRegionsAtLevel(level, nodes, this->Top);
return;
}
//----------------------------------------------------------------------------
......@@ -570,7 +566,6 @@ void vtkKdTree::GetLeafNodeIds(vtkKdNode *node, vtkIntArray *ids)
{
ids->InsertNextValue(id);
}
return;
}
//----------------------------------------------------------------------------
......@@ -730,8 +725,6 @@ void vtkKdTree::ComputeCellCenter(vtkDataSet *set, int cellId, double *center)
this->ComputeCellCenter(set->GetCell(cellId), center, weights);
delete [] weights;
return;
}
//----------------------------------------------------------------------------
......@@ -743,8 +736,6 @@ void vtkKdTree::ComputeCellCenter(vtkCell *cell, double *center,
int subId = cell->GetParametricCenter(pcoords);
cell->EvaluateLocation(subId, pcoords, center, weights);
return;
}
//----------------------------------------------------------------------------
......@@ -917,7 +908,6 @@ void vtkKdTree::BuildLocator()
this->SetCalculator(this->Top);
this->UpdateProgress(1.0);
return;
}
int vtkKdTree::ProcessUserDefinedCuts(double *minBounds)
......@@ -1610,8 +1600,6 @@ void vtkKdTree::SelfRegister(vtkKdNode *kd)
this->SelfRegister(kd->GetLeft());
this->SelfRegister(kd->GetRight());
}
return;
}
//----------------------------------------------------------------------------
......@@ -3553,14 +3541,12 @@ int vtkKdTree::findRegion(vtkKdNode *node, double x, double y, double z)
void vtkKdTree::CreateCellLists()
{
this->CreateCellLists(static_cast<int *>(NULL), 0);
return;
}
//----------------------------------------------------------------------------
void vtkKdTree::CreateCellLists(int *regionList, int listSize)
{
this->CreateCellLists(this->GetDataSet(), regionList, listSize);
return;
}
//----------------------------------------------------------------------------
......@@ -3574,7 +3560,6 @@ void vtkKdTree::CreateCellLists(int dataSetIndex, int *regionList, int listSize)
}
this->CreateCellLists(dataSet, regionList, listSize);
return;
}
//----------------------------------------------------------------------------
......
......@@ -353,8 +353,6 @@ void vtkComputeMVCWeightsForPolygonMesh(double x[3], T *pts, vtkIdType npts,
{
weights[pid] /= sumWeight;
}
return;
}
//----------------------------------------------------------------------------
......@@ -534,8 +532,6 @@ void vtkComputeMVCWeightsForTriangleMesh(double x[3], T *pts, vtkIdType npts,
{
weights[pid] /= sumWeight;
}
return;
}
//----------------------------------------------------------------------------
......@@ -609,8 +605,6 @@ void vtkMeanValueCoordinatesInterpolator::ComputeInterpolationWeights(
vtkMeanValueCoordinatesInterpolator::
ComputeInterpolationWeightsForPolygonMesh(x,pts,iter,weights);
}
return;
}
//----------------------------------------------------------------------------
......
......@@ -547,8 +547,6 @@ void vtkPlanesIntersection::ComputeNormal(double *p1, double *p2, double *p3,
v2[0] = p3[0] - p2[0]; v2[1] = p3[1] - p2[1]; v2[2] = p3[2] - p2[2];
vtkMath::Cross(v1, v2, normal);
return;
}
int vtkPlanesIntersection::GoodNormal(double *n)
{
......
......@@ -1008,8 +1008,6 @@ void vtkPointLocator::GetBucketNeighbors(vtkNeighborPoints* buckets,
}
}
}
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment