From: lehtonen Date: Fri, 16 Sep 2011 13:57:27 +0000 (+0000) Subject: Removed obsolete methods from interfaces: X-Git-Tag: simantics-1.5~30 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=3b9191a5df3460687f0b68e55bb501a1aadcc96e;p=simantics%2Fsysdyn.git Removed obsolete methods from interfaces: * 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 --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/connections/SysdynConnectionClass.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/connections/SysdynConnectionClass.java index e391f7e9..efa0c349 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/connections/SysdynConnectionClass.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/connections/SysdynConnectionClass.java @@ -130,38 +130,6 @@ public class SysdynConnectionClass { return Collections.emptySet(); return entity.getTerminalConnections(result); } - - @Override - public IElement newBranchPoint(IElement connection) { - ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY); - if (entity == null) - throw new IllegalArgumentException("element '" + connection + "' is not a connection element"); - return entity.newBranchPoint(); - } - - @Override - public IElement newEdge(IElement connection) { - ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY); - if (entity == null) - throw new IllegalArgumentException("element '" + connection + "' is not a connection element"); - return entity.newEdge(); - } - - @Override - public void removeBranchPoint(IElement connection, IElement branchPoint) { - ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY); - if (entity == null) - throw new IllegalArgumentException("element '" + connection + "' is not a connection element"); - entity.removeBranchPoint(branchPoint); - } - - @Override - public void removeEdge(IElement connection, IElement edge) { - ConnectionEntity entity = connection.getHint(ElementHints.KEY_CONNECTION_ENTITY); - if (entity == null) - throw new IllegalArgumentException("element '" + connection + "' is not a connection element"); - entity.removeEdge(edge); - } } static final class ConnectionSceneGraph implements SceneGraph {