]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Unused commented code is removed.
authorrkv <rkv@opencascade.com>
Wed, 28 Nov 2012 07:39:48 +0000 (07:39 +0000)
committerrkv <rkv@opencascade.com>
Wed, 28 Nov 2012 07:39:48 +0000 (07:39 +0000)
Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java

index a47e1dc7ed43d554a45a61d0538399dbd81e8974..c25190697313029383f7ddd670144ba6867476c4 100644 (file)
@@ -449,13 +449,8 @@ public class PublicationServiceImpl implements PublicationService {
                Document previous = aPublication.value().getPreviousVersion();
                if (previous != null) {
                        Publication oldoc = step.getDocument(previous.getIndex());
-                       boolean done = getStepService().remove(step, oldoc); // Decrements the configuration tag count of document
-/*                     if (done) {
-                               oldoc = getPublicationDAO().merge(oldoc); //RKV: to avoid: NonUniqueObjectException: a different object with the same identifier value was already associated with the session
-                               //RKV: use delete-orphan by removing from project element, see StepService.remove
-                               //RKV: getPublicationDAO().delete(oldoc); // WARNING: Potential problem because it's not automatically done as orphan object
-                       }
-*/             }
+                       getStepService().remove(step, oldoc); // Decrements the configuration tag count of document
+               }
                getStepService().add(step, aPublication); // Increments the configuration tag count of document
 
                // Import the document properties and update of the study