From 0f43aa378cadc394ac1c2c5d385a03282028ef99 Mon Sep 17 00:00:00 2001
From: Simon Barner <barner@fortiss.org>
Date: Wed, 15 Nov 2017 08:56:48 +0000
Subject: [PATCH] YELLOW

(Removed erroneous and unused method BaseModelElementUtils.getSuccessorConnector())
refs 2490
---
 .../base/utils/BaseModelElementUtils.java     | 33 +------------------
 1 file changed, 1 insertion(+), 32 deletions(-)

diff --git a/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/utils/BaseModelElementUtils.java b/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/utils/BaseModelElementUtils.java
index a0a356a82..096977b5a 100644
--- a/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/utils/BaseModelElementUtils.java
+++ b/org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/utils/BaseModelElementUtils.java
@@ -24,7 +24,6 @@ import java.util.Collection;
 import java.util.LinkedList;
 import java.util.List;
 
-import org.fortiss.tooling.base.model.element.IConnection;
 import org.fortiss.tooling.base.model.element.IConnector;
 import org.fortiss.tooling.base.model.element.IHiddenSpecification;
 import org.fortiss.tooling.base.model.element.IHierarchicElement;
@@ -41,7 +40,7 @@ import org.fortiss.tooling.base.model.element.IModelElementSpecification;
  * @author hoelzl
  * @author $Author: hoelzl $
  * @version $Rev: 18709 $
- * @ConQAT.Rating RED Hash: 6F5382879B9A2C34F8785319431DB5A0
+ * @ConQAT.Rating YELLOW Hash: 46F473DE149533261065AC7FC7292ED5
  */
 public class BaseModelElementUtils {
 
@@ -123,36 +122,6 @@ public class BaseModelElementUtils {
 		return result;
 	}
 
-	/**
-	 * For a given {@link IConnector}, returns the successor {@link IConnector} of a given
-	 * {@code successorType}.
-	 * 
-	 * @param connector
-	 *            {@link IConnector} for which to determine the successor.
-	 * @param successorType
-	 *            Type of successor {@link IConnector}.
-	 * @return The successor {@link IConnector} in case it exists and is unique (i.e., the given
-	 *         {@link IConnector} contains exactly one {@link IConnection} that points to a
-	 *         successor {@link IConnector} of the desired type.
-	 */
-	// TODO(VA) This method always returns null (!)
-	// It is however not used anywhere so I think it can be removed.
-	@SuppressWarnings("unchecked")
-	public static <T extends IConnector> T getSuccessorConnector(IConnector connector,
-			Class<T> successorType) {
-		T rval = null;
-		for(IConnection connection : connector.getOutgoing()) {
-			if(successorType.isAssignableFrom(connection.getTarget().getClass())) {
-				if(rval == null) {
-					rval = (T)connection.getTarget();
-				} else {
-					return null;
-				}
-			}
-		}
-		return null;
-	}
-
 	/**
 	 * Returns the <i>directly</i> connected {@link IHierarchicElement}s of the given
 	 * {@code element} which have the given type.
-- 
GitLab