summaryrefslogtreecommitdiffstats
path: root/models-sim/policy-models-sim-pdp
diff options
context:
space:
mode:
Diffstat (limited to 'models-sim/policy-models-sim-pdp')
-rw-r--r--models-sim/policy-models-sim-pdp/src/main/java/org/onap/policy/models/sim/pdp/handler/PdpMessageHandler.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/models-sim/policy-models-sim-pdp/src/main/java/org/onap/policy/models/sim/pdp/handler/PdpMessageHandler.java b/models-sim/policy-models-sim-pdp/src/main/java/org/onap/policy/models/sim/pdp/handler/PdpMessageHandler.java
index 855919e71..de0edef0c 100644
--- a/models-sim/policy-models-sim-pdp/src/main/java/org/onap/policy/models/sim/pdp/handler/PdpMessageHandler.java
+++ b/models-sim/policy-models-sim-pdp/src/main/java/org/onap/policy/models/sim/pdp/handler/PdpMessageHandler.java
@@ -32,10 +32,8 @@ import org.onap.policy.models.pdp.enums.PdpResponseStatus;
import org.onap.policy.models.pdp.enums.PdpState;
import org.onap.policy.models.sim.pdp.PdpSimulatorConstants;
import org.onap.policy.models.sim.pdp.parameters.PdpStatusParameters;
-import org.onap.policy.models.sim.pdp.parameters.ToscaPolicyTypeIdentifierParameters;
import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicy;
import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicyIdentifier;
-import org.onap.policy.models.tosca.authorative.concepts.ToscaPolicyTypeIdentifier;
/**
* This class supports the handling of pdp messages.
@@ -64,24 +62,6 @@ public class PdpMessageHandler {
}
/**
- * Method to get supported policy types from the parameters.
- *
- * @param pdpStatusParameters pdp status parameters
- * @return supportedPolicyTypes list of PolicyTypeIdent
- */
- private List<ToscaPolicyTypeIdentifier> getSupportedPolicyTypesFromParameters(
- final PdpStatusParameters pdpStatusParameters) {
- final List<ToscaPolicyTypeIdentifier> supportedPolicyTypes =
- new ArrayList<>(pdpStatusParameters.getSupportedPolicyTypes().size());
- for (final ToscaPolicyTypeIdentifierParameters policyTypeIdentParameters : pdpStatusParameters
- .getSupportedPolicyTypes()) {
- supportedPolicyTypes.add(new ToscaPolicyTypeIdentifier(policyTypeIdentParameters.getName(),
- policyTypeIdentParameters.getVersion()));
- }
- return supportedPolicyTypes;
- }
-
- /**
* Method to create PdpStatus message from the context, which is to be sent by pdp simulator to pap.
*
* @return PdpStatus the pdp status message