From d52c3a40465fd7e957776509c83ded4e85087ee8 Mon Sep 17 00:00:00 2001 From: rkv Date: Wed, 28 Nov 2012 07:39:48 +0000 Subject: [PATCH] Unused commented code is removed. --- .../src/org/splat/service/PublicationServiceImpl.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 -- 2.39.2