Commit 0f0e9a74 authored by Sean McBride's avatar Sean McBride

Removed dead code

Found with clang -Wunused-member-function or
-Wunreachable-code.
parent 0fdb9d28
......@@ -270,19 +270,6 @@ int vtkParticleTracerBase::RequestInformation(
return 1;
}
namespace
{
//----------------------------------------------------------------------------
class WithinTolerance: public std::binary_function<double, double, bool>
{
public:
result_type operator()(first_argument_type a, second_argument_type b) const
{
bool result = (fabs(a-b)<=(a*1E-6));
return (result_type)result;
}
};
}
//----------------------------------------------------------------------------
int vtkParticleTracerBase::RequestUpdateExtent(
......
......@@ -240,15 +240,8 @@ void vtkOpenGLGlyph3DMapper::Render(vtkRenderer *ren, vtkActor *actor)
{
this->SourceMappers = new vtkOpenGLGlyph3DMapperArray();
}
if (/*indexArray*/ true)
{
this->SourceMappers->Mappers.resize(
static_cast<size_t>(numberOfSources));
}
else
{
this->SourceMappers->Mappers.resize(1);
}
this->SourceMappers->Mappers.resize(
static_cast<size_t>(numberOfSources));
for (size_t cc = 0; cc < this->SourceMappers->Mappers.size(); cc++)
{
vtkPolyData *s = this->GetSource(static_cast<int>(cc));
......
......@@ -26,12 +26,6 @@ namespace
{
struct ObjectId
{
ObjectId()
{
this->GlobalId = 0;
this->Object = NULL;
}
ObjectId(vtkTypeUInt32 id)
{
this->GlobalId = id;
......@@ -63,48 +57,6 @@ struct ObjectId
return *this;
}
ObjectId& operator=(vtkTypeUInt32 id)
{
this->GlobalId = id;
this->Object = NULL;
return *this;
}
ObjectId& operator=(vtkObject* obj)
{
this->GlobalId = 0;
this->Object = obj;
return *this;
}
bool operator==(const ObjectId &other) const
{
if (this == &other)
{
// Same object?
return true;
}
if( this->GlobalId != 0 && other.GlobalId != 0
&& this->GlobalId != other.GlobalId)
{
return false;
}
if( this->Object.GetPointer() != NULL && other.Object.GetPointer() != NULL
&& this->Object.GetPointer() != other.Object.GetPointer())
{
return false;
}
return true;
}
bool operator!=(const ObjectId &other) const
{
return !(*this == other);
}
bool operator<(const ObjectId &other) const
{
if (this == &other)
......
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