Commit 19c55e0e authored by Mark Olesen's avatar Mark Olesen Committed by Brad King

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 f14bcc3c

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -39,7 +39,7 @@ class ContextTest : public vtkContextItem
{
public:
static ContextTest *New();
vtkTypeRevisionMacro(ContextTest, vtkContextItem);
vtkTypeMacro(ContextTest, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
};
......@@ -67,7 +67,6 @@ int TestContext( int argc, char * argv [] )
// Make our new derived class to draw a diagram
vtkStandardNewMacro(ContextTest);
vtkCxxRevisionMacro(ContextTest, "1.2");
// This function aims to test the primitives provided by the 2D API.
bool ContextTest::Paint(vtkContext2D *painter)
{
......
......@@ -37,7 +37,7 @@ class APIDiagram : public vtkContextItem
{
public:
static APIDiagram *New();
vtkTypeRevisionMacro(APIDiagram, vtkContextItem);
vtkTypeMacro(APIDiagram, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
};
......@@ -76,7 +76,6 @@ int TestDiagram( int argc, char * argv [] )
// Make our new derived class to draw a diagram
vtkStandardNewMacro(APIDiagram);
vtkCxxRevisionMacro(APIDiagram, "1.5");
// This function draws our API diagram
bool APIDiagram::Paint(vtkContext2D *painter)
{
......
......@@ -39,7 +39,7 @@ class APIDiagram2 : public vtkContextItem
{
public:
static APIDiagram2 *New();
vtkTypeRevisionMacro(APIDiagram2, vtkContextItem);
vtkTypeMacro(APIDiagram2, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
};
......@@ -89,7 +89,6 @@ int TestQtDiagram( int argc, char * argv [] )
// Make our new derived class to draw a diagram
vtkStandardNewMacro(APIDiagram2);
vtkCxxRevisionMacro(APIDiagram2, "1.5");
// This function draws our API diagram
bool APIDiagram2::Paint(vtkContext2D *painter)
{
......
......@@ -15,7 +15,6 @@
#include "vtkAbstractContextBufferId.h"
vtkCxxRevisionMacro(vtkAbstractContextBufferId, "1.1");
// ----------------------------------------------------------------------------
vtkAbstractContextBufferId::vtkAbstractContextBufferId()
......
......@@ -40,7 +40,7 @@
class VTK_CHARTS_EXPORT vtkAbstractContextBufferId : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkAbstractContextBufferId, vtkObject);
vtkTypeMacro(vtkAbstractContextBufferId, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -29,7 +29,6 @@
#include "math.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkAxis, "1.28");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkAxis);
......
......@@ -36,7 +36,7 @@ class vtkTextProperty;
class VTK_CHARTS_EXPORT vtkAxis : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkAxis, vtkContextItem);
vtkTypeMacro(vtkAxis, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX
......
......@@ -27,7 +27,6 @@
#include "vtkPanelMark.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBarMark, "1.3");
vtkStandardNewMacro(vtkBarMark);
//-----------------------------------------------------------------------------
......
......@@ -32,7 +32,7 @@ class vtkAbstractContextBufferId;
class VTK_CHARTS_EXPORT vtkBarMark : public vtkMark
{
public:
vtkTypeRevisionMacro(vtkBarMark, vtkMark);
vtkTypeMacro(vtkBarMark, vtkMark);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBarMark* New();
......
......@@ -27,7 +27,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBlockItem, "1.6");
vtkStandardNewMacro(vtkBlockItem);
//-----------------------------------------------------------------------------
......
......@@ -29,7 +29,7 @@ class vtkContext2D;
class VTK_CHARTS_EXPORT vtkBlockItem : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkBlockItem, vtkContextItem);
vtkTypeMacro(vtkBlockItem, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBlockItem *New();
......
......@@ -18,7 +18,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkBrush, "1.3");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkBrush);
......
......@@ -31,7 +31,7 @@
class VTK_CHARTS_EXPORT vtkBrush : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkBrush, vtkObject);
vtkTypeMacro(vtkBrush, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkBrush *New();
......
......@@ -21,7 +21,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChart, "1.16");
vtkCxxSetObjectMacro(vtkChart, AnnotationLink, vtkAnnotationLink);
//-----------------------------------------------------------------------------
......
......@@ -36,7 +36,7 @@ class vtkTable;
class VTK_CHARTS_EXPORT vtkChart : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkChart, vtkContextItem);
vtkTypeMacro(vtkChart, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
//BTX
......
......@@ -47,7 +47,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartLegend, "1.3");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartLegend);
......
......@@ -31,7 +31,7 @@ class vtkChart;
class VTK_CHARTS_EXPORT vtkChartLegend : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkChartLegend, vtkContextItem);
vtkTypeMacro(vtkChartLegend, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -66,7 +66,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartParallelCoordinates, "1.14");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartParallelCoordinates);
......
......@@ -29,7 +29,7 @@ class vtkStringArray;
class VTK_CHARTS_EXPORT vtkChartParallelCoordinates : public vtkChart
{
public:
vtkTypeRevisionMacro(vtkChartParallelCoordinates, vtkChart);
vtkTypeMacro(vtkChartParallelCoordinates, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -73,7 +73,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkChartXY, "1.48");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkChartXY);
......
......@@ -35,7 +35,7 @@ class vtkChartXYPrivate; // Private class to keep my STL vector in...
class VTK_CHARTS_EXPORT vtkChartXY : public vtkChart
{
public:
vtkTypeRevisionMacro(vtkChartXY, vtkChart);
vtkTypeMacro(vtkChartXY, vtkChart);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -27,7 +27,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkColorSeries, "1.3");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkColorSeries);
......
......@@ -30,7 +30,7 @@
class VTK_CHARTS_EXPORT vtkColorSeries : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkColorSeries, vtkObject);
vtkTypeMacro(vtkColorSeries, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -29,7 +29,6 @@
#include <cassert>
vtkCxxRevisionMacro(vtkContext2D, "1.25");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkContext2D);
......
......@@ -42,7 +42,7 @@ class vtkAbstractContextBufferId;
class VTK_CHARTS_EXPORT vtkContext2D : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContext2D, vtkObject);
vtkTypeMacro(vtkContext2D, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -24,7 +24,6 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextActor, "1.8");
vtkStandardNewMacro(vtkContextActor);
vtkCxxSetObjectMacro(vtkContextActor, Context, vtkContext2D);
......
......@@ -30,7 +30,7 @@ class VTK_CHARTS_EXPORT vtkContextActor : public vtkProp
{
public: