From 64c75349d6922d2b61d175fd257b66c94293469c Mon Sep 17 00:00:00 2001 From: Gabriel Rodriguez Alsina Date: Wed, 10 Apr 2019 10:28:01 -0300 Subject: [PATCH] (fix) address several compiler warnings --- .../block_scout_web/controllers/active_pools_controller.ex | 4 +--- .../controllers/common_components_controller.ex | 4 +--- .../block_scout_web/controllers/inactive_pools_controller.ex | 4 +--- .../lib/block_scout_web/controllers/stakes_controller.ex | 4 +--- .../lib/block_scout_web/controllers/validators_controller.ex | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/active_pools_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/active_pools_controller.ex index 31c95a0169..d7b1f44dc9 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/active_pools_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/active_pools_controller.ex @@ -1,14 +1,12 @@ defmodule BlockScoutWeb.ActivePoolsController do use BlockScoutWeb, :controller - alias BlockScoutWeb.ActivePoolsView - def index(conn, params) do [] |> handle_render(conn, params) end - defp handle_render(full_options, conn, _params) do + defp handle_render(_full_options, conn, _params) do render(conn, "index.html") end end diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/common_components_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/common_components_controller.ex index 8c23d8ed8d..379bd15ed5 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/common_components_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/common_components_controller.ex @@ -1,14 +1,12 @@ defmodule BlockScoutWeb.CommonComponentsController do use BlockScoutWeb, :controller - alias BlockScoutWeb.CommonComponentsView - def index(conn, params) do [] |> handle_render(conn, params) end - defp handle_render(full_options, conn, _params) do + defp handle_render(_full_options, conn, _params) do render(conn, "index.html") end end diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/inactive_pools_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/inactive_pools_controller.ex index b664c55044..d1bdae1d35 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/inactive_pools_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/inactive_pools_controller.ex @@ -1,14 +1,12 @@ defmodule BlockScoutWeb.InactivePoolsController do use BlockScoutWeb, :controller - alias BlockScoutWeb.InactivePoolsView - def index(conn, params) do [] |> handle_render(conn, params) end - defp handle_render(full_options, conn, _params) do + defp handle_render(_full_options, conn, _params) do render(conn, "index.html") end end diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/stakes_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/stakes_controller.ex index c64d2309e3..cdc9dd7df8 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/stakes_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/stakes_controller.ex @@ -1,14 +1,12 @@ defmodule BlockScoutWeb.StakesController do use BlockScoutWeb, :controller - alias BlockScoutWeb.StakesView - def index(conn, params) do [] |> handle_render(conn, params) end - defp handle_render(full_options, conn, _params) do + defp handle_render(_full_options, conn, _params) do render(conn, "index.html") end end diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/validators_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/validators_controller.ex index a3c3225f97..1a77f4ca25 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/validators_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/validators_controller.ex @@ -1,14 +1,12 @@ defmodule BlockScoutWeb.ValidatorsController do use BlockScoutWeb, :controller - alias BlockScoutWeb.ValidatorsView - def index(conn, params) do [] |> handle_render(conn, params) end - defp handle_render(full_options, conn, _params) do + defp handle_render(_full_options, conn, _params) do render(conn, "index.html") end end