Commit f8914c31 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 e5a817f6
......@@ -21,7 +21,6 @@
#include "vtkDataSetAttributes.h"
vtkStandardNewMacro(vtkSILBuilder);
vtkCxxRevisionMacro(vtkSILBuilder, "1.1");
vtkCxxSetObjectMacro(vtkSILBuilder, SIL, vtkMutableDirectedGraph);
//----------------------------------------------------------------------------
vtkSILBuilder::vtkSILBuilder()
......
......@@ -34,7 +34,7 @@ class VTK_EXPORT vtkSILBuilder : public vtkObject
{
public:
static vtkSILBuilder* New();
vtkTypeRevisionMacro(vtkSILBuilder, vtkObject);
vtkTypeMacro(vtkSILBuilder, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description
......
......@@ -88,7 +88,6 @@ private:
vtkStandardNewMacro(vtkXdmfReaderTester);
vtkStandardNewMacro(vtkXdmfReader);
vtkCxxRevisionMacro(vtkXdmfReader, "1.74");
//----------------------------------------------------------------------------
vtkXdmfReader::vtkXdmfReader()
{
......
......@@ -42,7 +42,7 @@ class VTK_EXPORT vtkXdmfReader : public vtkDataReader
{
public:
static vtkXdmfReader* New();
vtkTypeRevisionMacro(vtkXdmfReader, vtkDataReader);
vtkTypeMacro(vtkXdmfReader, vtkDataReader);
void PrintSelf(ostream& os, vtkIndent indent);
// Until needed, multiple domains are not supported.
......
......@@ -129,7 +129,6 @@ struct vtkXdmfWriterInternal
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkXdmfWriter);
vtkCxxRevisionMacro(vtkXdmfWriter, "1.7");
//----------------------------------------------------------------------------
vtkXdmfWriter::vtkXdmfWriter()
......
......@@ -46,7 +46,7 @@ class VTK_EXPORT vtkXdmfWriter : public vtkProcessObject
{
public:
static vtkXdmfWriter *New();
vtkTypeRevisionMacro(vtkXdmfWriter,vtkProcessObject);
vtkTypeMacro(vtkXdmfWriter,vtkProcessObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
......
......@@ -156,7 +156,6 @@ void vtkXdmfWriter2Internal::DetermineCellTypes(vtkPointSet * t, vtkXdmfWriter2I
//==============================================================================
vtkStandardNewMacro(vtkXdmfWriter2);
vtkCxxRevisionMacro(vtkXdmfWriter2, "1.25");
//----------------------------------------------------------------------------
vtkXdmfWriter2::vtkXdmfWriter2()
......
......@@ -55,7 +55,7 @@ class VTK_EXPORT vtkXdmfWriter2 : public vtkDataObjectAlgorithm
{
public:
static vtkXdmfWriter2 *New();
vtkTypeRevisionMacro(vtkXdmfWriter2,vtkDataObjectAlgorithm);
vtkTypeMacro(vtkXdmfWriter2,vtkDataObjectAlgorithm);
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