From: rkv Date: Wed, 28 Nov 2012 07:39:48 +0000 (+0000) Subject: Unused commented code is removed. X-Git-Tag: Root_Delivery1_2012_12_06~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d52c3a40465fd7e957776509c83ded4e85087ee8;p=tools%2Fsiman.git Unused commented code is removed. --- diff --git a/Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java b/Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java index a47e1dc..c251906 100644 --- a/Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java +++ b/Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java @@ -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