diff --git a/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/util/.ratings b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/util/.ratings index 54dbbaa30a7bb41b4c71fd19ac86c8067e4fdb0f..6bba3f712adadfd0705a2c8a4e8f37a854bdbcc3 100644 --- a/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/util/.ratings +++ b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/util/.ratings @@ -1,5 +1,5 @@ ActionUtils.java 4553e487264e3d1f86f4767da4a7400cce4b9a5d GREEN -CopyPasteUtils.java aa9a24ff499a505cbb27e6e5a6f462776caa5025 YELLOW +CopyPasteUtils.java 62ac1094c1d56c83251b01ce7b52c2217625a79c YELLOW DataBindingUtils.java 631c47881caa13fc567679a7e4416eb777af0713 GREEN DragAndDropUtils.java 7aab91518aa12d76533a345bf6ed0be9ac7ff0e5 GREEN EObjectSelectionUtils.java 128cf8f96c6b9478171dff3deda662d5934f5f44 GREEN diff --git a/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/util/CopyPasteUtils.java b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/util/CopyPasteUtils.java index d007ec5a207726ae9ac031c72121645e24043571..62ac1094c1d56c83251b01ce7b52c2217625a79c 100644 --- a/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/util/CopyPasteUtils.java +++ b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/util/CopyPasteUtils.java @@ -23,7 +23,6 @@ import java.util.Collection; import org.eclipse.emf.common.util.BasicEList; import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.TreeIterator; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.util.EcoreUtil; import org.eclipse.swt.dnd.Clipboard; @@ -64,13 +63,6 @@ public class CopyPasteUtils { EcoreUtil.Copier copier = new EcoreUtil.Copier(true, true); for(EObject obj : sel) { content[i] = copier.copy(obj); - // TODO(JE): remove unused code - // Remove constraint instances: these are specific to their original elements and - // should not be copied. - TreeIterator<EObject> it = content[i].eAllContents(); - while(it.hasNext()) { - EObject subObj = it.next(); - } i++; } copier.copyReferences();