From 9e841d5c0353e5ddc3b19a61b269f88a4fd5e055 Mon Sep 17 00:00:00 2001 From: Seth Hollandsworth Date: Tue, 18 Apr 2023 09:46:18 -0400 Subject: [PATCH] removing unused function --- src/confcom/azext_confcom/security_policy.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/confcom/azext_confcom/security_policy.py b/src/confcom/azext_confcom/security_policy.py index 96a7a1eb306..ce5327c96ff 100644 --- a/src/confcom/azext_confcom/security_policy.py +++ b/src/confcom/azext_confcom/security_policy.py @@ -214,19 +214,6 @@ def _add_elements(self, dictionary) -> Dict: return dictionary - def _convert_to_json(self, dictionary) -> Dict: - # need to make a deep copy so we can change the underlying config data - # dicts - editable = copy.deepcopy(dictionary) - out = {"length": len(editable), "elements": {}} - - for i, container in enumerate(editable): - out["elements"][str(i)] = container - - self._add_elements(out) - - return {config.POLICY_FIELD_CONTAINERS: out} - def validate_cce_policy(self) -> Tuple[bool, Dict]: """Utility method: check to see if the existing policy that instantiates this function would allow the policy created by the input ARM Template"""