]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Removed obsolete methods from interfaces:
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 16 Sep 2011 13:57:27 +0000 (13:57 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 16 Sep 2011 13:57:27 +0000 (13:57 +0000)
* org.simantics.g2d.connection.handler.ConnectionHandler
* org.simantics.g2d.diagram.DiagramMutator
* org.simantics.g2d.connection.ConnectionEntity

Fixed related problems from product code.

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@22297 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/connections/SysdynConnectionClass.java

index e391f7e992c63a4c1b782811a6f7cfe86d8853d7..efa0c3499c95b5455c1e213b8c0efb7850dc9b98 100644 (file)
@@ -130,38 +130,6 @@ public class SysdynConnectionClass {
                 return Collections.emptySet();\r
             return entity.getTerminalConnections(result);\r
         }\r
-\r
-        @Override\r
-        public IElement newBranchPoint(IElement connection) {\r
-            ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY);\r
-            if (entity == null)\r
-                throw new IllegalArgumentException("element '" + connection + "' is not a connection element");\r
-            return entity.newBranchPoint();\r
-        }\r
-\r
-        @Override\r
-        public IElement newEdge(IElement connection) {\r
-            ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY);\r
-            if (entity == null)\r
-                throw new IllegalArgumentException("element '" + connection + "' is not a connection element");\r
-            return entity.newEdge();\r
-        }\r
-\r
-        @Override\r
-        public void removeBranchPoint(IElement connection, IElement branchPoint) {\r
-            ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY);\r
-            if (entity == null)\r
-                throw new IllegalArgumentException("element '" + connection + "' is not a connection element");\r
-            entity.removeBranchPoint(branchPoint);\r
-        }\r
-\r
-        @Override\r
-        public void removeEdge(IElement connection, IElement edge) {\r
-            ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY);\r
-            if (entity == null)\r
-                throw new IllegalArgumentException("element '" + connection + "' is not a connection element");\r
-            entity.removeEdge(edge);\r
-        }\r
     }\r
 \r
     static final class ConnectionSceneGraph implements SceneGraph {\r