/* It is the caller's responsibility to check the ObjectNode has been removed from the tree and is not referencing any other node in the tree. */
STATIC EFI_STATUS EFIAPI AmlDeleteObjectNode(IN AML_OBJECT_NODE *ObjectNode)
/* It is the caller's responsibility to check the ObjectNode has been removed from the tree and is not referencing any other node in the tree. */
STATIC EFI_STATUS EFIAPI AmlDeleteObjectNode(IN AML_OBJECT_NODE *ObjectNode)
{
  if (!IS_AML_OBJECT_NODE (ObjectNode)) {
    ASSERT (0);
    return EFI_INVALID_PARAMETER;
  }
  FreePool (ObjectNode);
  return EFI_SUCCESS;
}