]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java
fixes #4427
[simantics/interop.git] / org.simantics.interop.mapping / src / org / simantics / interop / mapping / Mapper.java
index 1c787cc6d335e862d097b6bc665def4e3ee8a93c..3414d4d05f17aafada5b733579783ae245974865 100644 (file)
@@ -394,39 +394,7 @@ public class Mapper {
                        return res.toString();\r
        }\r
        \r
-       public class WriteWrapper extends WriteGraphProxy {\r
-               \r
-               \r
-               private Collection<Resource> createdResources = new ArrayList<Resource>();\r
-               \r
-               public WriteWrapper(WriteGraph graph) {\r
-                       super(graph);\r
-               }\r
-               \r
-               public Collection<Resource> getCreatedResources() {\r
-                       return createdResources;\r
-               }\r
-               \r
-               public void clearCreated() {\r
-                       createdResources = new ArrayList<Resource>();\r
-               }\r
-               \r
-               @Override\r
-               public Resource newResource() throws ServiceException {\r
-                       Resource res = graph.newResource();\r
-                       createdResources.add(res);\r
-                       return res;\r
-               }\r
-               \r
-               @Override\r
-               public Resource newResource(long clusterId) throws ServiceException {\r
-                       Resource res = graph.newResource(clusterId);\r
-                       createdResources.add(res);\r
-                       return res;\r
-               }\r
-               \r
-               \r
-       }\r
+\r
        \r
        private void initializeRules(Session session, VirtualGraph vg, final Resource model ) throws DatabaseException{\r
                session.syncRequest(new WriteRequest(vg) {\r