Skip to content

Commit b0433dd

Browse files
authored
Merge pull request #43 from thewtex/unused-variables
COMP: Remove unused variables
2 parents 12bedef + 18fce1a commit b0433dd

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

include/itkPolyDataToMeshFilter.hxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ PolyDataToMeshFilter<TInputPolyData>::GenerateData()
205205

206206
while (inputCellItr != inputCellEnd)
207207
{
208+
#ifndef NDEBUG
208209
auto numPoints = inputCellItr.Value();
210+
#endif
209211
++inputCellItr;
210212

211213
// Verify vertex contains exactly one point ID
@@ -270,9 +272,6 @@ PolyDataToMeshFilter<TInputPolyData>::GenerateData()
270272
// Verify at least one strip is described
271273
itkAssertInDebugAndIgnoreInReleaseMacro(numPoints >= TriangleCellType::NumberOfPoints);
272274

273-
// Create cell
274-
typename CellContainerType::ConstIterator stripCellEnd = inputCellItr;
275-
276275
for (unsigned int i = 0; i < numPoints - 2; i++)
277276
{
278277
typename CellType::CellAutoPointer cell;

test/itkPolyDataToMeshFilterTest.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ itkPolyDataToMeshFilterTest(int, char *[])
4343

4444
ITK_TRY_EXPECT_NO_EXCEPTION(filter->Update());
4545

46-
constexpr unsigned int PointDimension = PolyDataType::PointDimension;
4746
using MeshType = FilterType::OutputMeshType;
4847
MeshType::Pointer meshResult = filter->GetOutput();
4948

@@ -107,11 +106,8 @@ template <typename TPixelType>
107106
void
108107
MakePolyDataSample(itk::PolyData<TPixelType> * polyData)
109108
{
110-
using PixelType = TPixelType;
111109
using PolyDataType = itk::PolyData<TPixelType>;
112110

113-
constexpr unsigned int PointDimension = PolyDataType::PointDimension;
114-
115111
polyData->Initialize();
116112

117113
using PointsContainerType = typename PolyDataType::PointsContainer;

0 commit comments

Comments
 (0)