From ccc69cbc3c8ddba5786ed945524070671a3034eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 20 Mar 2024 23:37:05 +0100 Subject: [PATCH] Remove unused assigns --- lib/livebook_web/live/hub/edit/team_component.ex | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/livebook_web/live/hub/edit/team_component.ex b/lib/livebook_web/live/hub/edit/team_component.ex index 94b8d84dd..78a1bf668 100644 --- a/lib/livebook_web/live/hub/edit/team_component.ex +++ b/lib/livebook_web/live/hub/edit/team_component.ex @@ -18,7 +18,6 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do deployment_groups = Teams.get_deployment_groups(assigns.hub) secret_name = assigns.params["secret_name"] file_system_id = assigns.params["file_system_id"] - deployment_group_id = assigns.params["deployment_group_id"] default? = default_hub?(assigns.hub) secret_value = @@ -33,15 +32,6 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do raise(NotFoundError, "could not find file system matching #{inspect(file_system_id)}") end - deployment_group = - if assigns.live_action == :edit_deployment_group do - Enum.find_value(deployment_groups, &(&1.id == deployment_group_id && &1)) || - raise( - NotFoundError, - "could not find deployment group matching #{inspect(deployment_group_id)}" - ) - end - {:ok, socket |> assign( @@ -49,8 +39,6 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do file_system: file_system, file_system_id: file_system_id, file_systems: file_systems, - deployment_group_id: deployment_group_id, - deployment_group: deployment_group, deployment_groups: deployment_groups, show_key: show_key, secret_name: secret_name,