merge
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / descriptive / operation / DeleteTaxonDescriptionOperation.java
index c9eaff971282d436c2975ffc5e4200d85906c1ea..4c87ecca134ea7fb30df7a71bfec462e6ae63203 100644 (file)
@@ -9,9 +9,6 @@
 
 package eu.etaxonomy.taxeditor.editor.view.descriptive.operation;
 
-import java.util.ArrayList;
-import java.util.List;
-
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.commands.operations.IUndoContext;
 import org.eclipse.core.runtime.IAdaptable;
@@ -66,10 +63,7 @@ public class DeleteTaxonDescriptionOperation extends AbstractPostTaxonOperation
 
                monitor.worked(20);
                if (description != null){
-                       List<String> propertyPaths = new ArrayList<String>();
-                       propertyPaths.add("taxon");
-                       TaxonDescription loadedDescription = (TaxonDescription) CdmStore.getService(IDescriptionService.class).load(description.getUuid(), propertyPaths);
-                       CdmStore.getService(IDescriptionService.class).deleteDescription(loadedDescription);
+                   CdmStore.getService(IDescriptionService.class).deleteDescription(description.getUuid());
                        return postExecute(description);
                }
                return null;