From: Marko Luukkainen Date: Wed, 18 Nov 2020 12:23:34 +0000 (+0200) Subject: Remove residual code that maps different literals. X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=b8697e9995610157c2a065ea545d42545b76559d;p=simantics%2Finterop.git Remove residual code that maps different literals. gitlab #25 Change-Id: Ic18ccbb5ccf42e0d324404e62c3e0b70e329c36f --- diff --git a/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java b/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java index 2727a95..15b8c2c 100644 --- a/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java +++ b/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java @@ -797,6 +797,8 @@ public class GraphComparator { } private void addComparable(Resource left, Resource right) throws DatabaseException { + if (left.getResourceId() == 225745 || right.getResourceId() == 225745) + System.out.println(); if(!comparableResources.contains(left, right)) { if (comparableResources.containsLeft(left)||comparableResources.containsRight(right)) { throw new DatabaseException("Comparator error: Trying to map " + left + " to " + right + " while mappings " + left + " to " + comparableResources.getRight(left) + " and " + comparableResources.getLeft(right) + " to " + right + " exist."); @@ -1275,8 +1277,6 @@ public class GraphComparator { } } else { addModification(r1,s1,r2,s2); - if (!s1.isAsserted(r1) && !s2.isAsserted(r2)) - addComparable(s1, s2); } i1++; i2++;