Skip to content

Commit

Permalink
Remove edit action
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim committed Nov 9, 2023
1 parent 43226bf commit f334db6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
6 changes: 2 additions & 4 deletions lib/screenplay/config/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ defmodule Screenplay.Config.PermanentConfig do
end
end

def edit_screen do
end

@spec delete_screen(binary(), binary()) :: :error | :ok
def delete_screen(screen_id, etag) do
case get_current_config(etag) do
Expand All @@ -33,7 +30,8 @@ defmodule Screenplay.Config.PermanentConfig do

defp get_current_config(etag) do
case S3Fetch.get_screens_config() do
{:ok, config, ^etag} -> {:ok, config}
{:ok, config, ^etag} ->
{:ok, config}

_ ->
:error
Expand Down
5 changes: 0 additions & 5 deletions lib/screenplay_web/controllers/config_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ defmodule ScreenplayWeb.ConfigController do
end
end

def edit(conn, _params) do
PermanentConfig.edit_screen()
conn
end

def delete(conn, %{"screen_id" => screen_id, "etag" => etag}) do
case PermanentConfig.delete_screen(screen_id, etag) do
:ok ->
Expand Down
1 change: 0 additions & 1 deletion lib/screenplay_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ defmodule ScreenplayWeb.Router do
])

post("/add", ConfigController, :add)
post("/edit", ConfigController, :edit)
post("/delete", ConfigController, :delete)
end

Expand Down

0 comments on commit f334db6

Please sign in to comment.