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
......@@ -48,7 +48,7 @@ class VTK_COMMON_EXPORT vtkAbstractTransform : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkAbstractTransform,vtkObject);
vtkTypeMacro(vtkAbstractTransform,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -15,7 +15,6 @@
#include "vtkAmoebaMinimizer.h"
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkAmoebaMinimizer, "1.7");
vtkStandardNewMacro(vtkAmoebaMinimizer);
//----------------------------------------------------------------------------
......
......@@ -32,7 +32,7 @@ class VTK_COMMON_EXPORT vtkAmoebaMinimizer : public vtkObject
{
public:
static vtkAmoebaMinimizer *New();
vtkTypeRevisionMacro(vtkAmoebaMinimizer,vtkObject);
vtkTypeMacro(vtkAmoebaMinimizer,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -17,7 +17,6 @@
#include "vtkObjectFactory.h"
#include "vtkCommand.h"
vtkCxxRevisionMacro(vtkAnimationCue, "1.8");
vtkStandardNewMacro(vtkAnimationCue);
//----------------------------------------------------------------------------
......
......@@ -40,7 +40,7 @@
class VTK_COMMON_EXPORT vtkAnimationCue: public vtkObject
{
public:
vtkTypeRevisionMacro(vtkAnimationCue,vtkObject);
vtkTypeMacro(vtkAnimationCue,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkAnimationCue* New();
......
......@@ -20,7 +20,6 @@
#include "vtkObjectFactory.h"
#include "vtkTimerLog.h"
vtkCxxRevisionMacro(vtkAnimationScene, "1.15");
vtkStandardNewMacro(vtkAnimationScene);
//----------------------------------------------------------------------------
......
......@@ -37,7 +37,7 @@ class vtkTimerLog;
class VTK_COMMON_EXPORT vtkAnimationScene: public vtkAnimationCue
{
public:
vtkTypeRevisionMacro(vtkAnimationScene, vtkAnimationCue);
vtkTypeMacro(vtkAnimationScene, vtkAnimationCue);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkAnimationScene* New();
......
......@@ -30,7 +30,6 @@
// Standard functions
//
vtkCxxRevisionMacro(vtkArray, "1.6");
//----------------------------------------------------------------------------
......
......@@ -56,7 +56,7 @@
class VTK_COMMON_EXPORT vtkArray : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkArray, vtkObject);
vtkTypeMacro(vtkArray, vtkObject);
void PrintSelf(ostream &os, vtkIndent indent);
//BTX
......
......@@ -25,7 +25,6 @@
#include <vtksys/stl/iterator>
vtkCxxRevisionMacro(vtkArrayCoordinateIterator, "1.1");
vtkStandardNewMacro(vtkArrayCoordinateIterator);
vtkArrayCoordinateIterator::vtkArrayCoordinateIterator() :
......
......@@ -16,7 +16,6 @@
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkArrayIterator, "1.1");
//-----------------------------------------------------------------------------
vtkArrayIterator::vtkArrayIterator()
{
......
......@@ -43,7 +43,7 @@ class vtkAbstractArray;
class VTK_COMMON_EXPORT vtkArrayIterator : public vtkObject
{
public:
vtkTypeRevisionMacro(vtkArrayIterator, vtkObject);
vtkTypeMacro(vtkArrayIterator, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -33,8 +33,6 @@ private:
virtual const char* GetClassNameInternal() const
{ return "vtkArrayIteratorTemplate"; }
protected:
void CollectRevisions(ostream& os);
public:
void PrintSelf(ostream& os, vtkIndent indent);
......
......@@ -31,9 +31,6 @@ vtkArrayIteratorTemplate<T>* vtkArrayIteratorTemplate<T>::New()
return new vtkArrayIteratorTemplate<T>;
}
template <class T>
vtkCxxRevisionMacro(vtkArrayIteratorTemplate<T>, "1.3");
template <class T>
vtkCxxSetObjectMacro(vtkArrayIteratorTemplate<T>, Array, vtkAbstractArray);
//-----------------------------------------------------------------------------
......
......@@ -17,7 +17,6 @@
#include "vtkMatrix4x4.h"
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkAssemblyNode, "1.11");
vtkStandardNewMacro(vtkAssemblyNode);
vtkAssemblyNode::vtkAssemblyNode()
......
......@@ -54,7 +54,7 @@ public:
// Create an assembly node.
static vtkAssemblyNode *New();
vtkTypeRevisionMacro(vtkAssemblyNode,vtkObject);
vtkTypeMacro(vtkAssemblyNode,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -19,7 +19,6 @@
#include "vtkObjectFactory.h"
#include "vtkProp.h"
vtkCxxRevisionMacro(vtkAssemblyPath, "1.9");
vtkStandardNewMacro(vtkAssemblyPath);
vtkAssemblyPath::vtkAssemblyPath()
......
......@@ -37,7 +37,7 @@ class vtkProp;
class VTK_COMMON_EXPORT vtkAssemblyPath : public vtkCollection
{
public:
vtkTypeRevisionMacro(vtkAssemblyPath,vtkCollection);
vtkTypeMacro(vtkAssemblyPath,vtkCollection);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -15,7 +15,6 @@
#include "vtkAssemblyPaths.h"
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkAssemblyPaths, "1.6");
vtkStandardNewMacro(vtkAssemblyPaths);
unsigned long vtkAssemblyPaths::GetMTime()
......
......@@ -34,7 +34,7 @@ class VTK_COMMON_EXPORT vtkAssemblyPaths : public vtkCollection
{
public:
static vtkAssemblyPaths *New();
vtkTypeRevisionMacro(vtkAssemblyPaths,vtkCollection);
vtkTypeMacro(vtkAssemblyPaths,vtkCollection);
// Description:
// Add a path to the list.
......
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