Remove extra remoting code
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 2 Nov 2015 15:17:40 +0000 (16:17 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 2 Nov 2015 15:17:40 +0000 (16:17 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/association/DerivedUnitTypeDesignationSection.java

index d41ddfda8747d8aacdab1946995da006537992cb..e63f84ba5cc7a0589843a6c2f77b30dc2674afc9 100644 (file)
@@ -16,10 +16,8 @@ import java.util.Set;
 
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
-import eu.etaxonomy.cdm.api.service.INameService;
 import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
-import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
@@ -72,9 +70,6 @@ public class DerivedUnitTypeDesignationSection extends AbstractEntityCollectionS
             Set<TaxonNameBase> names = specimenTypeDesignation.getTypifiedNames();
             for (TaxonNameBase taxonNameBase : names) {
                 taxonNameBase.removeTypeDesignation(specimenTypeDesignation);
-                if(CdmStore.getCurrentSessionManager().isRemoting()){
-                    CdmStore.getService(INameService.class).merge(taxonNameBase);
-                }
             }
         }
         typeDesignations.removeAll(toRemove);