Remove unused method 46/646/2
authorChristopher Lott (cl778h) <clott@research.att.com>
Thu, 25 Jan 2018 16:34:39 +0000 (11:34 -0500)
committerChristopher Lott (cl778h) <clott@research.att.com>
Thu, 25 Jan 2018 16:39:42 +0000 (11:39 -0500)
Remove unused Utils method that called CDS enum methods which
are no longer available.

Change-Id: I6937b44f7e64892a8b3c75661b1617b5845fed20
Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
gateway/src/main/java/org/acumos/federation/gateway/util/Utils.java
pom.xml

index 54cd886..3810bf1 100644 (file)
@@ -26,7 +26,6 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-import org.acumos.cds.domain.MLPAccessType;
 import org.acumos.federation.gateway.config.EELFLoggerDelegate;
 
 import com.fasterxml.jackson.core.JsonProcessingException;
@@ -50,7 +49,7 @@ public class Utils {
                return isEmpty;
        }
        
-       public static boolean isEmptyList(List input) {
+       public static boolean isEmptyList(@SuppressWarnings("rawtypes") List input) {
                boolean isEmpty = false;
                if (null == input || 0 == input.size()) {
                        isEmpty = true;
@@ -83,36 +82,6 @@ public class Utils {
                }
        }       
        
-       /**
-        * 
-        * @param accessType
-        * Access type
-        * @return
-        *              MLPAccessType object for Storing in DB
-        */
-       public static MLPAccessType getMLPAccessType(String accessType) {
-               MLPAccessType mlpAccessType = null;
-               
-               if(!isEmptyOrNullString(accessType)) {
-                       mlpAccessType = new MLPAccessType();
-                       if(accessType.equals("PB")) {
-                               
-                               mlpAccessType.setAccessCode("PB");
-                               mlpAccessType.setAccessName("Public");
-                       } else if(accessType.equals("OR")) {
-                               mlpAccessType.setAccessCode("OR");
-                               mlpAccessType.setAccessName("Organization");
-                       } else if(accessType.equals("PR")) {
-                               mlpAccessType.setAccessCode("PR");
-                               mlpAccessType.setAccessName("Private");
-                       } else {//Default
-                               mlpAccessType.setAccessCode("PR");
-                               mlpAccessType.setAccessName("Private");
-                       }
-               } 
-               return mlpAccessType;
-       }
-       
        public static String getTempFolderPath(String artifactName, String version, String nexusTempPath) {
                logger.debug("--------------- getTempFolderPath() started --------------");
                if (!isEmptyOrNullString(nexusTempPath)) {
diff --git a/pom.xml b/pom.xml
index a2314fe..d91ec00 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -26,8 +26,8 @@
                                <artifactId>sonar-maven-plugin</artifactId>
                                <version>3.4.0.905</version>
                        </plugin>
-                        <!-- No "skip" configuration for maven-deploy-plugin. Let the pom be deployed 
-                        to LF Nexus repo, so that the final deploy step finds a file and succeeds. -->
+                       <!-- No "skip" configuration for maven-deploy-plugin. Let the pom be deployed 
+                       to LF Nexus repo, so that the final deploy step finds a file and succeeds. -->
                </plugins>
        </build>
 </project>