]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/DataObject.cxx
Coding style improved.
[cpPlugins.git] / lib / cpPlugins / Interface / DataObject.cxx
index 73ff662f9c423c0891e26a965dc034120d18b57c..09df979f3b0da19aceae48562c54c305a3ce435d 100644 (file)
@@ -2,34 +2,6 @@
 #include <vtkImageData.h>
 #include <vtkPolyData.h>
 
-// -------------------------------------------------------------------------
-itk::DataObject* cpPlugins::Interface::DataObject::
-GetITKDataObject( )
-{
-  return( this->m_ITKObject.GetPointer( ) );
-}
-
-// -------------------------------------------------------------------------
-const itk::DataObject* cpPlugins::Interface::DataObject::
-GetITKDataObject( ) const
-{
-  return( this->m_ITKObject.GetPointer( ) );
-}
-
-// -------------------------------------------------------------------------
-vtkDataObject* cpPlugins::Interface::DataObject::
-GetVTKDataObject( )
-{
-  return( this->m_VTKObject.GetPointer( ) );
-}
-
-// -------------------------------------------------------------------------
-const vtkDataObject* cpPlugins::Interface::DataObject::
-GetVTKDataObject( ) const
-{
-  return( this->m_VTKObject.GetPointer( ) );
-}
-
 // -------------------------------------------------------------------------
 cpPlugins::Interface::Object* cpPlugins::Interface::DataObject::
 GetSource( )
@@ -84,12 +56,10 @@ DisconnectPipeline( )
 
     } // fi
 
-    // Unbind source
-    if( this->m_Source.IsNotNull( ) )
-      this->m_Source->Delete( );
-    this->Register( );
-
   } // fi
+
+  // Unbind source
+  this->m_Source = NULL;
 }
 
 // -------------------------------------------------------------------------