Skip to content

Commit eed67f3

Browse files
committed
Remove legacy function
1 parent dd725e5 commit eed67f3

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

localstack-core/localstack/services/cloudformation/resource_provider.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -222,25 +222,6 @@ def list(self, request: ResourceRequest[Properties]) -> ProgressEvent[Properties
222222
raise NotImplementedError
223223

224224

225-
# legacy helpers
226-
def get_resource_type(resource: dict) -> str:
227-
"""this is currently overwritten in PRO to add support for custom resources"""
228-
if isinstance(resource, str):
229-
raise ValueError(f"Invalid argument: {resource}")
230-
try:
231-
resource_type: str = resource["Type"]
232-
233-
if resource_type.startswith("Custom::"):
234-
return "AWS::CloudFormation::CustomResource"
235-
return resource_type
236-
except Exception:
237-
LOG.warning(
238-
"Failed to retrieve resource type %s",
239-
resource.get("Type"),
240-
exc_info=LOG.isEnabledFor(logging.DEBUG),
241-
)
242-
243-
244225
def standardise_resource_type(resource_type: str) -> str:
245226
"""
246227
Custom resources can either start with Custom:: or AWS::CloudFormation::CustomResource.

0 commit comments

Comments
 (0)