Salome HOME
Improvement of delete of links
authorrahuel <rahuel@opencascade.com>
Fri, 10 Jun 2005 08:10:10 +0000 (08:10 +0000)
committerrahuel <rahuel@opencascade.com>
Fri, 10 Jun 2005 08:10:10 +0000 (08:10 +0000)
src/Supervision/Port_Impl.cxx

index 8ca4b76ed6a9bef5e9011b01280eb8f7eb6fba24..21953c6c9cd6b9c03f8ed9152f5dbc6b216102fb 100644 (file)
@@ -114,9 +114,9 @@ void Port_Impl::destroy() {
   if ( _DataFlowNode->IsOneOfInLineNodes() ) {
     if ( _InputPort ) {
       GraphBase::InPort * anInPort = (GraphBase::InPort * ) _DataFlowPort ;
-      if ( anInPort->GetOutPort() ) {
-        anInPort->GetOutPort()->RemoveInPort( anInPort ) ;
-      }
+//      if ( anInPort->GetOutPort() ) {
+//        anInPort->GetOutPort()->RemoveInPort( anInPort ) ;
+//      }
       if ( _DataFlowNode->IsOneOfInLineNodes() ) {
         _DataFlowNode->DelInPort( _DataFlowPort->PortName() ) ;
         if ( _DataFlowNode->IsLoopNode() ) {
@@ -125,8 +125,6 @@ void Port_Impl::destroy() {
           _DataFlowNode->CoupledNode()->DelOutPort( _DataFlowPort->PortName() ) ;
         }
       }
-      else {
-      }
       destroyed = true ;
     }
     else if ( _DataFlowNode->IsOneOfInLineNodes() && !_DataFlowNode->IsLoopNode() ) {
@@ -165,6 +163,8 @@ bool Port_Impl::Input( const SUPERV::Value_ptr aValue ) {
 bool Port_Impl::Input( const CORBA::Any * anAny ) {
   beginService( "Port_Impl::Input" );
   bool RetVal = false ;
+  MESSAGE( "Port_Impl::Input(CORBA::Any *) : " << _DataFlowNode->Name() << "( "
+           << _DataFlowPort->PortName() << " ) " ) ;
   if ( _DataFlowEditor->Graph()->GraphMacroLevel() == 0 ) {
     if ( _InputPort && _DataFlowEditor->IsEditing() ) {
       RetVal = true ;