Skip to content
Snippets Groups Projects
Commit 388bc84c authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Kernel: Removed unused code from copy/paste utils.

Was a remainders of removing constraints...

Issue-Ref: 3977
Issue-Url: https://af3-developer.fortiss.org/issues/3977



Signed-off-by: default avatarAndreas Bayha <bayha@fortiss.org>
parent 675c03a1
No related branches found
No related tags found
1 merge request!973977
ActionUtils.java 4553e487264e3d1f86f4767da4a7400cce4b9a5d GREEN
CopyPasteUtils.java aa9a24ff499a505cbb27e6e5a6f462776caa5025 YELLOW
CopyPasteUtils.java 62ac1094c1d56c83251b01ce7b52c2217625a79c YELLOW
DataBindingUtils.java 631c47881caa13fc567679a7e4416eb777af0713 GREEN
DragAndDropUtils.java 7aab91518aa12d76533a345bf6ed0be9ac7ff0e5 GREEN
EObjectSelectionUtils.java 128cf8f96c6b9478171dff3deda662d5934f5f44 GREEN
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment