From: Tal Gitelman Date: Mon, 30 Apr 2018 14:40:28 +0000 (+0300) Subject: Remove dead code common-app-api X-Git-Tag: v1.2.0~107 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=025a1e762676144b055d2f090386d66620096ac8;p=sdc.git Remove dead code common-app-api Change-Id: I305c40c3795687d6e8e9bc42ec4f8fb8769020cf Issue-ID: SDC-1270 Signed-off-by: Tal Gitelman --- diff --git a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java index ad5d08e209..140b293b46 100644 --- a/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java +++ b/catalog-fe/src/main/java/org/openecomp/sdc/fe/servlets/PortalServlet.java @@ -37,7 +37,6 @@ import javax.ws.rs.core.Context; import org.openecomp.portalsdk.core.onboarding.util.CipherUtil; import org.openecomp.portalsdk.core.onboarding.util.PortalApiConstants; import org.openecomp.portalsdk.core.onboarding.util.PortalApiProperties; -import org.openecomp.sdc.common.config.EcompErrorName; import org.openecomp.sdc.common.impl.MutableHttpServletRequest; import org.openecomp.sdc.fe.Constants; import org.openecomp.sdc.fe.config.Configuration; diff --git a/catalog-fe/src/test/java/org/openecomp/sdc/servlets/FeProxyServletTest.java b/catalog-fe/src/test/java/org/openecomp/sdc/servlets/FeProxyServletTest.java index f3bd9a75b8..7143e8776b 100644 --- a/catalog-fe/src/test/java/org/openecomp/sdc/servlets/FeProxyServletTest.java +++ b/catalog-fe/src/test/java/org/openecomp/sdc/servlets/FeProxyServletTest.java @@ -25,7 +25,6 @@ import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -import java.net.URI; import java.util.ArrayList; import java.util.Collections; import java.util.List; diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/util/EitherPair.java b/common-app-api/src/main/java/org/openecomp/sdc/common/util/EitherPair.java deleted file mode 100644 index 44f0d251c2..0000000000 --- a/common-app-api/src/main/java/org/openecomp/sdc/common/util/EitherPair.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.openecomp.sdc.common.util; - -import fj.data.Either; - -import java.util.function.BiFunction; -import java.util.function.Function; - -public class EitherPair { - - private Either firstEither; - private Either secondEither; - - private EitherPair(Either firstEither, Either secondEither) { - this.firstEither = firstEither; - this.secondEither = secondEither; - } - - public static EitherPair from(Either firstEither, - Either secondEither) { - return new EitherPair<>(firstEither, secondEither); - } - - public X either(BiFunction onLeft, Function onRight) { - if (firstEither.isRight()) { - return onRight.apply(firstEither.right().value()); - } - if (secondEither.isRight()) { - return onRight.apply(secondEither.right().value()); - } - return onLeft.apply(firstEither.left().value(), secondEither.left().value()); - } - - -}