[POLICY-106] Removed unused function in the Guard project 43/6243/1
authorMichael Borokhovich <michael@research.att.com>
Tue, 25 Jul 2017 21:14:27 +0000 (17:14 -0400)
committerMichael Borokhovich <michael@research.att.com>
Tue, 25 Jul 2017 21:15:32 +0000 (17:15 -0400)
Change-Id: I4d19514525142c0b688f4811b5b92d0767a7d8bd
Signed-off-by: Michael Borokhovich <michael@research.att.com>
controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java

index 87eb517..8f3928c 100644 (file)
@@ -179,21 +179,6 @@ public class PIPEngineGetHistory extends StdConfigurableEngine{
 
        
        
-       
-       private void addStringAttribute(StdMutablePIPResponse stdPIPResponse, Identifier category, Identifier attributeId, String value) {
-               if (value != null) {
-                       AttributeValue<String> attributeValue   = null;
-                       try {
-                               attributeValue  = DataTypes.DT_STRING.createAttributeValue(value);
-                       } catch (Exception ex) {
-                               //this.logger.error("Failed to convert " + value + " to an AttributeValue<String>", ex);
-                       }
-                       if (attributeValue != null) {
-                               stdPIPResponse.addAttribute(new StdMutableAttribute(category, attributeId, attributeValue, this.getIssuer(), false));
-                       }
-               }
-       }
-       
        private PIPResponse getAttribute(PIPRequest pipRequest, PIPFinder pipFinder) {
                PIPResponse pipResponse = null;