Commit 0368f481 authored by Sean McBride's avatar Sean McBride
Browse files

Removed unused VTK_CREATE macro

It appears nowhere else in the file,
but an identical macro appears in many other places,
making me think this is leftover copy-paste.
Found this dead code using -Wunused-macros.

Change-Id: Ib8ac3d8c4eb756b04147f7dcd029a0e8c75c0869
parent 9bb5e01f
......@@ -30,10 +30,6 @@
#include <set>
#include <iterator>
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
vtkStandardNewMacro(vtkSelectionNode);
vtkCxxSetObjectMacro(vtkSelectionNode, SelectionData, vtkDataSetAttributes);
......
......@@ -64,10 +64,6 @@ public:
vtkStandardNewMacro(vtkAttributeClustering2DLayoutStrategy);
// This is just a convenient macro for smart pointers
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
#ifndef MIN
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
......
......@@ -43,10 +43,6 @@
vtkStandardNewMacro(vtkClustering2DLayoutStrategy);
// This is just a convenient macro for smart pointers
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
#ifndef MIN
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
......
......@@ -43,10 +43,6 @@
vtkStandardNewMacro(vtkCommunity2DLayoutStrategy);
// This is just a convenient macro for smart pointers
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
#ifndef MIN
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
......
......@@ -43,10 +43,6 @@
vtkStandardNewMacro(vtkConstrained2DLayoutStrategy);
// This is just a convenient macro for smart pointers
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
#ifndef MIN
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
......
......@@ -43,10 +43,6 @@
vtkStandardNewMacro(vtkFast2DLayoutStrategy);
// This is just a convenient macro for smart pointers
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
#ifndef MIN
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
......
......@@ -37,9 +37,6 @@
#include <string>
#include <vector>
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
//----------------------------------------------------------------------------
class vtkView::Command : public vtkCommand
{
......
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