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
......@@ -45,7 +45,6 @@ public:
bool Rebuild;
};
vtkCxxRevisionMacro(vtkBitArray, "1.66");
vtkStandardNewMacro(vtkBitArray);
//----------------------------------------------------------------------------
......
......@@ -30,7 +30,7 @@ class VTK_COMMON_EXPORT vtkBitArray : public vtkDataArray
{
public:
static vtkBitArray *New();
vtkTypeRevisionMacro(vtkBitArray,vtkDataArray);
vtkTypeMacro(vtkBitArray,vtkDataArray);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -18,7 +18,6 @@
#include "vtkObjectFactory.h"
vtkStandardNewMacro(vtkBitArrayIterator);
vtkCxxRevisionMacro(vtkBitArrayIterator, "1.3");
vtkCxxSetObjectMacro(vtkBitArrayIterator, Array, vtkBitArray);
//-----------------------------------------------------------------------------
vtkBitArrayIterator::vtkBitArrayIterator()
......
......@@ -26,7 +26,7 @@ class VTK_COMMON_EXPORT vtkBitArrayIterator : public vtkArrayIterator
{
public:
static vtkBitArrayIterator* New();
vtkTypeRevisionMacro(vtkBitArrayIterator, vtkArrayIterator);
vtkTypeMacro(vtkBitArrayIterator, vtkArrayIterator);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -18,7 +18,6 @@
#include "vtkBoundingBox.h"
#include <assert.h>
vtkCxxRevisionMacro(vtkBox, "1.10");
vtkStandardNewMacro(vtkBox);
// Construct the box centered at the origin and each side length 1.0.
......
......@@ -34,7 +34,7 @@ class vtkBoundingBox;
class VTK_COMMON_EXPORT vtkBox : public vtkImplicitFunction
{
public:
vtkTypeRevisionMacro(vtkBox,vtkImplicitFunction);
vtkTypeMacro(vtkBox,vtkImplicitFunction);
void PrintSelf(ostream& os, vtkIndent indent);
// Description
......
......@@ -18,7 +18,6 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkBoxMuellerRandomSequence, "1.4");
vtkStandardNewMacro(vtkBoxMuellerRandomSequence);
......
......@@ -28,7 +28,7 @@
class VTK_COMMON_EXPORT vtkBoxMuellerRandomSequence: public vtkGaussianRandomSequence
{
public:
vtkTypeRevisionMacro(vtkBoxMuellerRandomSequence,vtkGaussianRandomSequence);
vtkTypeMacro(vtkBoxMuellerRandomSequence,vtkGaussianRandomSequence);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkBoxMuellerRandomSequence* New();
......
......@@ -16,7 +16,6 @@
#include <memory.h>
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkByteSwap, "1.57");
vtkStandardNewMacro(vtkByteSwap);
//----------------------------------------------------------------------------
......
......@@ -26,7 +26,7 @@ class VTK_COMMON_EXPORT vtkByteSwap : public vtkObject
{
public:
static vtkByteSwap *New();
vtkTypeRevisionMacro(vtkByteSwap,vtkObject);
vtkTypeMacro(vtkByteSwap,vtkObject);
//BTX
// Description:
......
......@@ -25,7 +25,6 @@ VTK_ARRAY_ITERATOR_TEMPLATE_INSTANTIATE(char);
#include "vtkObjectFactory.h"
//----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkCharArray, "1.40");
vtkStandardNewMacro(vtkCharArray);
//----------------------------------------------------------------------------
......
......@@ -36,7 +36,7 @@ class VTK_COMMON_EXPORT vtkCharArray : public vtkDataArray
{
public:
static vtkCharArray* New();
vtkTypeRevisionMacro(vtkCharArray,vtkDataArray);
vtkTypeMacro(vtkCharArray,vtkDataArray);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -17,7 +17,6 @@
#include "vtkObjectFactory.h"
vtkStandardNewMacro(vtkClientSocket);
vtkCxxRevisionMacro(vtkClientSocket, "1.2");
//-----------------------------------------------------------------------------
vtkClientSocket::vtkClientSocket()
{
......
......@@ -24,7 +24,7 @@ class VTK_COMMON_EXPORT vtkClientSocket : public vtkSocket
{
public:
static vtkClientSocket* New();
vtkTypeRevisionMacro(vtkClientSocket, vtkSocket);
vtkTypeMacro(vtkClientSocket, vtkSocket);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -21,7 +21,6 @@
#include <stdlib.h>
#include <math.h>
vtkCxxRevisionMacro(vtkCollection, "1.48");
vtkStandardNewMacro(vtkCollection);
// Construct with empty list.
......
......@@ -46,7 +46,7 @@ class vtkCollectionIterator;
class VTK_COMMON_EXPORT vtkCollection : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkCollection,vtkObject);
vtkTypeMacro(vtkCollection,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -16,7 +16,6 @@
#include "vtkObjectFactory.h"
#include "vtkCollection.h"
vtkCxxRevisionMacro(vtkCollectionIterator, "1.5");
vtkStandardNewMacro(vtkCollectionIterator);
//----------------------------------------------------------------------------
......
......@@ -33,7 +33,7 @@ class vtkCollectionElement;
class VTK_COMMON_EXPORT vtkCollectionIterator : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkCollectionIterator,vtkObject);
vtkTypeMacro(vtkCollectionIterator,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkCollectionIterator* New();
......
......@@ -5,7 +5,6 @@
#include <errno.h>
vtkStandardNewMacro(vtkConditionVariable);
vtkCxxRevisionMacro(vtkConditionVariable,"1.17");
#ifndef EPERM
# define EPERM 1
......
......@@ -141,7 +141,7 @@ class VTK_COMMON_EXPORT vtkConditionVariable : public vtkObject
{
public:
static vtkConditionVariable* New();
vtkTypeRevisionMacro(vtkConditionVariable,vtkObject);
vtkTypeMacro(vtkConditionVariable,vtkObject);
void PrintSelf( ostream& os, vtkIndent indent );
// Description:
......
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