Commit ecbbf7f7 authored by Mark Olesen's avatar Mark Olesen Committed by Brad King
Browse files

Remove vtk(Cxx|Type)RevisionMacro

The CVS $Revision$ keyword replacement will no longer maintain these
macros automatically.  They were used only to implement CollectRevisions
and vtkObjectBase::PrintRevisions, an API that was never used.

Automated as follows:

  pass 0:
  catch templates
  ---------------
  $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'

  pass 1:
  main changes
  ---------------
  $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
    echo "$file" 1>&2
    perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
  done
  $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
    echo "$file" 1>&2
    perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
  done

  pass 2:
  verify
  ---------------
  $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'

Fixed multi-line vtkCxxRevisionMacro and templates by hand.
parent 1cd36ac0
...@@ -39,7 +39,7 @@ class ContextTest : public vtkContextItem ...@@ -39,7 +39,7 @@ class ContextTest : public vtkContextItem
{ {
public: public:
static ContextTest *New(); static ContextTest *New();
vtkTypeRevisionMacro(ContextTest, vtkContextItem); vtkTypeMacro(ContextTest, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn // Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter); virtual bool Paint(vtkContext2D *painter);
}; };
...@@ -67,7 +67,6 @@ int TestContext( int argc, char * argv [] ) ...@@ -67,7 +67,6 @@ int TestContext( int argc, char * argv [] )
// Make our new derived class to draw a diagram // Make our new derived class to draw a diagram
vtkStandardNewMacro(ContextTest); vtkStandardNewMacro(ContextTest);
vtkCxxRevisionMacro(ContextTest, "1.2");
// This function aims to test the primitives provided by the 2D API. // This function aims to test the primitives provided by the 2D API.
bool ContextTest::Paint(vtkContext2D *painter) bool ContextTest::Paint(vtkContext2D *painter)
{ {
......
...@@ -37,7 +37,7 @@ class APIDiagram : public vtkContextItem ...@@ -37,7 +37,7 @@ class APIDiagram : public vtkContextItem
{ {
public: public:
static APIDiagram *New(); static APIDiagram *New();
vtkTypeRevisionMacro(APIDiagram, vtkContextItem); vtkTypeMacro(APIDiagram, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn // Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter); virtual bool Paint(vtkContext2D *painter);
}; };
...@@ -76,7 +76,6 @@ int TestDiagram( int argc, char * argv [] ) ...@@ -76,7 +76,6 @@ int TestDiagram( int argc, char * argv [] )
// Make our new derived class to draw a diagram // Make our new derived class to draw a diagram
vtkStandardNewMacro(APIDiagram); vtkStandardNewMacro(APIDiagram);
vtkCxxRevisionMacro(APIDiagram, "1.5");
// This function draws our API diagram // This function draws our API diagram
bool APIDiagram::Paint(vtkContext2D *painter) bool APIDiagram::Paint(vtkContext2D *painter)
{ {
......
...@@ -39,7 +39,7 @@ class APIDiagram2 : public vtkContextItem ...@@ -39,7 +39,7 @@ class APIDiagram2 : public vtkContextItem
{ {
public: public:
static APIDiagram2 *New(); static APIDiagram2 *New();
vtkTypeRevisionMacro(APIDiagram2, vtkContextItem); vtkTypeMacro(APIDiagram2, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn // Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter); virtual bool Paint(vtkContext2D *painter);
}; };
...@@ -89,7 +89,6 @@ int TestQtDiagram( int argc, char * argv [] ) ...@@ -89,7 +89,6 @@ int TestQtDiagram( int argc, char * argv [] )
// Make our new derived class to draw a diagram // Make our new derived class to draw a diagram
vtkStandardNewMacro(APIDiagram2); vtkStandardNewMacro(APIDiagram2);
vtkCxxRevisionMacro(APIDiagram2, "1.5");
// This function draws our API diagram // This function draws our API diagram
bool APIDiagram2::Paint(vtkContext2D *painter) bool APIDiagram2::Paint(vtkContext2D *painter)
{ {
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "math.h" #include "math.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkAxis, "1.20.4.4");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkAxis); vtkStandardNewMacro(vtkAxis);
......
...@@ -36,7 +36,7 @@ class vtkTextProperty; ...@@ -36,7 +36,7 @@ class vtkTextProperty;
class VTK_CHARTS_EXPORT vtkAxis : public vtkContextItem class VTK_CHARTS_EXPORT vtkAxis : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkAxis, vtkContextItem); vtkTypeMacro(vtkAxis, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX //BTX
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBlockItem, "1.6");
vtkStandardNewMacro(vtkBlockItem); vtkStandardNewMacro(vtkBlockItem);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -29,7 +29,7 @@ class vtkContext2D; ...@@ -29,7 +29,7 @@ class vtkContext2D;
class VTK_CHARTS_EXPORT vtkBlockItem : public vtkContextItem class VTK_CHARTS_EXPORT vtkBlockItem : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkBlockItem, vtkContextItem); vtkTypeMacro(vtkBlockItem, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBlockItem *New(); static vtkBlockItem *New();
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBrush, "1.3");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkBrush); vtkStandardNewMacro(vtkBrush);
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
class VTK_CHARTS_EXPORT vtkBrush : public vtkObject class VTK_CHARTS_EXPORT vtkBrush : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkBrush, vtkObject); vtkTypeMacro(vtkBrush, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBrush *New(); static vtkBrush *New();
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChart, "1.16");
vtkCxxSetObjectMacro(vtkChart, AnnotationLink, vtkAnnotationLink); vtkCxxSetObjectMacro(vtkChart, AnnotationLink, vtkAnnotationLink);
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -36,7 +36,7 @@ class vtkTable; ...@@ -36,7 +36,7 @@ class vtkTable;
class VTK_CHARTS_EXPORT vtkChart : public vtkContextItem class VTK_CHARTS_EXPORT vtkChart : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkChart, vtkContextItem); vtkTypeMacro(vtkChart, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX //BTX
......
...@@ -47,7 +47,6 @@ public: ...@@ -47,7 +47,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartLegend, "1.3");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartLegend); vtkStandardNewMacro(vtkChartLegend);
......
...@@ -31,7 +31,7 @@ class vtkChart; ...@@ -31,7 +31,7 @@ class vtkChart;
class VTK_CHARTS_EXPORT vtkChartLegend : public vtkContextItem class VTK_CHARTS_EXPORT vtkChartLegend : public vtkContextItem
{ {
public: public:
vtkTypeRevisionMacro(vtkChartLegend, vtkContextItem); vtkTypeMacro(vtkChartLegend, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -59,7 +59,6 @@ public: ...@@ -59,7 +59,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartParallelCoordinates, "1.3");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartParallelCoordinates); vtkStandardNewMacro(vtkChartParallelCoordinates);
......
...@@ -28,7 +28,7 @@ class vtkIdTypeArray; ...@@ -28,7 +28,7 @@ class vtkIdTypeArray;
class VTK_CHARTS_EXPORT vtkChartParallelCoordinates : public vtkChart class VTK_CHARTS_EXPORT vtkChartParallelCoordinates : public vtkChart
{ {
public: public:
vtkTypeRevisionMacro(vtkChartParallelCoordinates, vtkChart); vtkTypeMacro(vtkChartParallelCoordinates, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -72,7 +72,6 @@ public: ...@@ -72,7 +72,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartXY, "1.46.4.1");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartXY); vtkStandardNewMacro(vtkChartXY);
......
...@@ -35,7 +35,7 @@ class vtkChartXYPrivate; // Private class to keep my STL vector in... ...@@ -35,7 +35,7 @@ class vtkChartXYPrivate; // Private class to keep my STL vector in...
class VTK_CHARTS_EXPORT vtkChartXY : public vtkChart class VTK_CHARTS_EXPORT vtkChartXY : public vtkChart
{ {
public: public:
vtkTypeRevisionMacro(vtkChartXY, vtkChart); vtkTypeMacro(vtkChartXY, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -27,7 +27,6 @@ public: ...@@ -27,7 +27,6 @@ public:
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkColorSeries, "1.3");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkColorSeries); vtkStandardNewMacro(vtkColorSeries);
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
class VTK_CHARTS_EXPORT vtkColorSeries : public vtkObject class VTK_CHARTS_EXPORT vtkColorSeries : public vtkObject
{ {
public: public:
vtkTypeRevisionMacro(vtkColorSeries, vtkObject); vtkTypeMacro(vtkColorSeries, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent); virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description: // Description:
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <cassert> #include <cassert>
vtkCxxRevisionMacro(vtkContext2D, "1.24");
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkContext2D); vtkStandardNewMacro(vtkContext2D);
......
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