From: Michael Borokhovich Date: Tue, 25 Jul 2017 21:14:27 +0000 (-0400) Subject: [POLICY-106] Removed unused function in the Guard project X-Git-Tag: v1.1.0~134 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=153690fb9fc0818e9b291a31d63805893b9dd10b;p=policy%2Fdrools-applications.git [POLICY-106] Removed unused function in the Guard project Change-Id: I4d19514525142c0b688f4811b5b92d0767a7d8bd Signed-off-by: Michael Borokhovich --- diff --git a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java index 87eb5170f..8f3928cdd 100644 --- a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java +++ b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java @@ -179,21 +179,6 @@ public class PIPEngineGetHistory extends StdConfigurableEngine{ - - private void addStringAttribute(StdMutablePIPResponse stdPIPResponse, Identifier category, Identifier attributeId, String value) { - if (value != null) { - AttributeValue attributeValue = null; - try { - attributeValue = DataTypes.DT_STRING.createAttributeValue(value); - } catch (Exception ex) { - //this.logger.error("Failed to convert " + value + " to an AttributeValue", ex); - } - if (attributeValue != null) { - stdPIPResponse.addAttribute(new StdMutableAttribute(category, attributeId, attributeValue, this.getIssuer(), false)); - } - } - } - private PIPResponse getAttribute(PIPRequest pipRequest, PIPFinder pipFinder) { PIPResponse pipResponse = null;