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
......@@ -42,7 +42,7 @@ class vtkContextBufferId;
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.7");
vtkStandardNewMacro(vtkContextActor);
vtkCxxSetObjectMacro(vtkContextActor, Context, vtkContext2D);
......
......@@ -30,7 +30,7 @@ class VTK_CHARTS_EXPORT vtkContextActor : public vtkProp
{
public:
void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeRevisionMacro(vtkContextActor,vtkProp);
vtkTypeMacro(vtkContextActor,vtkProp);
static vtkContextActor* New();
......
......@@ -19,7 +19,6 @@
#include <cassert>
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextBufferId, "1.2");
vtkStandardNewMacro(vtkContextBufferId);
// ----------------------------------------------------------------------------
......
......@@ -29,7 +29,7 @@ class vtkIntArray;
class VTK_CHARTS_EXPORT vtkContextBufferId : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContextBufferId, vtkObject);
vtkTypeMacro(vtkContextBufferId, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -19,7 +19,6 @@
#include "vtkObjectFactory.h"
#include <assert.h>
vtkCxxRevisionMacro(vtkContextDevice2D, "1.2");
//-----------------------------------------------------------------------------
//vtkStandardNewMacro(vtkContextDevice2D);
......
......@@ -37,7 +37,7 @@ class vtkContextBufferId;
class VTK_CHARTS_EXPORT vtkContextDevice2D : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContextDevice2D, vtkObject);
vtkTypeMacro(vtkContextDevice2D, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -26,7 +26,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkContextItem, "1.8");
vtkCxxSetObjectMacro(vtkContextItem, Transform, vtkTransform2D);
//-----------------------------------------------------------------------------
......
......@@ -33,7 +33,7 @@ class vtkContextMouseEvent;
class VTK_CHARTS_EXPORT vtkContextItem : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContextItem, vtkObject);
vtkTypeMacro(vtkContextItem, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -21,7 +21,6 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextMapper2D, "1.1");
vtkStandardNewMacro(vtkContextMapper2D);
//-----------------------------------------------------------------------------
vtkContextMapper2D::vtkContextMapper2D()
......
......@@ -33,7 +33,7 @@ class vtkAbstractArray;
class VTK_CHARTS_EXPORT vtkContextMapper2D : public vtkAlgorithm
{
public:
vtkTypeRevisionMacro(vtkContextMapper2D, vtkAlgorithm);
vtkTypeMacro(vtkContextMapper2D, vtkAlgorithm);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkContextMapper2D *New();
......
......@@ -144,7 +144,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkContextScene, "1.19");
vtkStandardNewMacro(vtkContextScene);
vtkCxxSetObjectMacro(vtkContextScene, AnnotationLink, vtkAnnotationLink);
......
......@@ -41,7 +41,7 @@ class vtkContextBufferId;
class VTK_CHARTS_EXPORT vtkContextScene : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkContextScene, vtkObject);
vtkTypeMacro(vtkContextScene, vtkObject);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -27,7 +27,6 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkContextView, "1.4");
vtkStandardNewMacro(vtkContextView);
vtkCxxSetObjectMacro(vtkContextView, Context, vtkContext2D);
......
......@@ -31,7 +31,7 @@ class VTK_CHARTS_EXPORT vtkContextView : public vtkRenderView
{
public:
void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeRevisionMacro(vtkContextView,vtkRenderView);
vtkTypeMacro(vtkContextView,vtkRenderView);
static vtkContextView* New();
......
......@@ -29,7 +29,6 @@
#include "vtkObjectFactory.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkImageItem, "1.8.4.1");
vtkStandardNewMacro(vtkImageItem);
//-----------------------------------------------------------------------------
......
......@@ -31,7 +31,7 @@ class vtkImageData;
class VTK_CHARTS_EXPORT vtkImageItem : public vtkContextItem
{
public:
vtkTypeRevisionMacro(vtkImageItem, vtkContextItem);
vtkTypeMacro(vtkImageItem, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkImageItem *New();
......
......@@ -149,7 +149,6 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkOpenGLContextDevice2D, "1.25");
vtkStandardNewMacro(vtkOpenGLContextDevice2D);
//-----------------------------------------------------------------------------
......
......@@ -35,7 +35,7 @@ class vtkOpenGLExtensionManager;
class VTK_CHARTS_EXPORT vtkOpenGLContextDevice2D : public vtkContextDevice2D
{
public:
vtkTypeRevisionMacro(vtkOpenGLContextDevice2D, vtkContextDevice2D);
vtkTypeMacro(vtkOpenGLContextDevice2D, vtkContextDevice2D);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
......
......@@ -19,7 +19,6 @@
#include "vtkColor.h"
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkPen, "1.7");
//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPen);
......
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