Commit 51b41614 authored by Sean McBride's avatar Sean McBride

Removed unused variables, found by cppcheck

parent b17fb6d6
Pipeline #5732 passed with stage
......@@ -2914,9 +2914,6 @@ void vtkPolyhedron::Clip(double value,
// vector to store cell connectivity
vtkIdVectorType cellVector;
// vector to store which side of the clip function the polyhedron vertices are
vtkIdVectorType pointLabelVector;
// check if polyhedron is all in
if (this->IntersectWithContour(value, insideOut, pointScalars) == 1)
{
......
......@@ -1625,7 +1625,7 @@ int vtkReebGraph::Implementation::CommitSimplification()
}
std::pair<int, int> destinationArc;
std::map<int, bool> processedInputArcs, processedOutputArcs;
std::map<int, bool> processedOutputArcs;
// now map the unsimplified arcs onto the simplified ones
for(unsigned int i = 0; i < before.size(); i++)
......
......@@ -112,8 +112,6 @@ void GenerateDescriptorAndMaterial(int depth, int sx, int sy, int sz, int branch
int TestHyperTreeGridTernary2DFullMaterialBits( int argc, char* argv[] )
{
std::stringstream descriptor;
std::stringstream materialMask;
int sx = 10;
int sy = 10;
int sz = 1;
......
......@@ -156,7 +156,6 @@ int ValidateSphere::ProcessRequest(vtkInformation* request,
}
// Adjust Phi and Theta resolutions for multi-piece
int thetaResolution, phiResolution;
int piece = controller->GetLocalProcessId();
int numPieces = mpInput->GetNumberOfPieces();
if (numPieces > this->ThetaResolution)
......
......@@ -466,8 +466,6 @@ void vtkExodusIIReaderPrivate::GlomArrayNames( int objtyp,
glommers.push_back( ten34 );
glommers.push_back( intpt );
glomVec::iterator glommer;
typedef std::vector<vtkExodusIIReaderPrivate::ArrayInfoType> varVec;
varVec arrays;
std::vector<int> tmpTruth;
// Advance through the variable names.
for ( int i = 0; i < num_vars; ++ i )
......@@ -515,6 +513,7 @@ void vtkExodusIIReaderPrivate::GlomArrayNames( int objtyp,
// Now see what the gloms were.
/*
typedef std::vector<vtkExodusIIReaderPrivate::ArrayInfoType> varVec;
for ( varVec::iterator it = this->ArrayInfo[objtyp].begin(); it != this->ArrayInfo[objtyp].end(); ++ it )
{
cout << "Name: \"" << it->Name.c_str() << "\" (" << it->Components << ")\n";
......@@ -3860,7 +3859,6 @@ void vtkExodusIIReaderPrivate::BuildSIL()
crossEdgesArray->Delete();
std::deque<std::string> names;
std::deque<vtkIdType> crossEdgeIds; // ids for edges between trees.
int cc;
// Now build the hierarchy.
......@@ -4288,7 +4286,6 @@ int vtkExodusIIReaderPrivate::RequestInformation()
VTK_EXO_FUNC( ex_get_var_param( exoid, "n", &num_vars ), "Unable to read number of nodal variables." );
if ( num_vars > 0 )
{
ArrayInfoType ainfo;
var_names = (char**) malloc( num_vars * sizeof(char*) );
for ( j = 0; j < num_vars; ++j )
var_names[j] = (char*) malloc( (MAX_STR_LENGTH + 1) * sizeof(char) );
......@@ -4318,7 +4315,6 @@ int vtkExodusIIReaderPrivate::RequestInformation()
VTK_EXO_FUNC( ex_get_var_param( exoid, "g", &num_vars ), "Unable to read number of global variables." );
if ( num_vars > 0 )
{
ArrayInfoType ainfo;
var_names = (char**) malloc( num_vars * sizeof(char*) );
for ( j = 0; j < num_vars; ++j )
var_names[j] = (char*) malloc( (MAX_STR_LENGTH + 1) * sizeof(char) );
......
......@@ -2595,8 +2595,6 @@ int vtkExodusIIWriter::WriteSideSetInformation()
// they appear in the input. We need a mapping from their internal
// id in the input to their internal id in the output.
std::map<int, int>::iterator idIt;
int nids = em->GetSumSidesPerSideSet();
if (nids < 1)
......
......@@ -225,7 +225,6 @@ int TestRIBExporter()
}
{
std::cout << "RIBExporter Set/Get..";
std::ostringstream exporterPrint;
vtkSmartPointer<vtkRIBExporter> exporter =
vtkSmartPointer<vtkRIBExporter>::New();
......
......@@ -397,10 +397,6 @@ void vtkX3DExporter::WriteAnActor(vtkActor *anActor,
vtkUnsignedCharArray *colors;
vtkSmartPointer<vtkTransform> trans;
// to be deleted
std::ostringstream appearance_stream;
std::ostringstream ostr;
// see if the actor has a mapper. it could be an assembly
if (anActor->GetMapper() == NULL)
{
......@@ -533,8 +529,6 @@ void vtkX3DExporter::WriteAnActor(vtkActor *anActor,
vtkCellArray* polys = pd->GetPolys();
vtkCellArray* tstrips = pd->GetStrips();
std::ostringstream geometry_stream;
vtkIdType numVerts = verts->GetNumberOfCells();
vtkIdType numLines = lines->GetNumberOfCells();
vtkIdType numPolys = polys->GetNumberOfCells();
......
......@@ -504,8 +504,6 @@ void vtkX3DExporterFIWriter::SetField(int attributeID, int type, const double* d
//----------------------------------------------------------------------------
void vtkX3DExporterFIWriter::SetField(int attributeID, int type, vtkDataArray* a)
{
std::vector<double> values;
this->StartAttribute(attributeID, true, false);
#ifdef ENCODEASSTRING
......@@ -529,6 +527,7 @@ void vtkX3DExporterFIWriter::SetField(int attributeID, int type, vtkDataArray* a
assert(false);
}
#else
std::vector<double> values;
switch(type)
{
case (MFVEC3F):
......@@ -597,8 +596,6 @@ void vtkX3DExporterFIWriter::SetField(int attributeID,
//----------------------------------------------------------------------------
void vtkX3DExporterFIWriter::SetField(int attributeID, int type, vtkCellArray* a)
{
std::vector<int> values;
vtkIdType npts = 0;
vtkIdType *indx = 0;
......@@ -625,7 +622,7 @@ void vtkX3DExporterFIWriter::SetField(int attributeID, int type, vtkCellArray* a
assert(false);
}
#else
std::ostringstream ss;
std::vector<int> values;
switch(type)
{
case (MFINT32):
......
......@@ -788,7 +788,6 @@ int vtkTesting::Test(int argc, char *argv[], vtkRenderWindow *rw,
{
testing->SetRenderWindow(rw);
std::ostringstream out1;
return testing->RegressionTestAndCaptureOutput(thresh, cout);
}
return NOT_RUN;
......
......@@ -510,7 +510,6 @@ void outputFunction(FILE *fp, ClassInfo *data)
unsigned int rType =
(currentFunction->ReturnType & VTK_PARSE_UNQUALIFIED_TYPE);
unsigned int aType = 0;
unsigned int baseType;
int i;
/* beans */
char *beanfunc;
......
Markdown is supported
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