Cleanup annoying compiler warnings

This commit is contained in:
connor rigby 2017-12-29 08:37:34 -08:00
parent 6e32c09838
commit 7da075a84c
3 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ defmodule Farmbot.CeleryScript.AST.Node.Zero do
@default_num_tries 20
defp do_wait_for_pos(axis, env, tries \\ @default_num_tries)
defp do_wait_for_pos(axis, env, 0) do
defp do_wait_for_pos(_axis, env, 0) do
# {:error, "Failed to set #{axis} location to 0", env}
{:ok, env}
end

View file

@ -68,7 +68,7 @@ defmodule Farmbot.FarmEvent.Manager do
{:noreply, %{state | timer: nil, checkup: checkup}}
end
def handle_info({:DOWN, _, :process, _, {:success, new_state}}, old_state) do
def handle_info({:DOWN, _, :process, _, {:success, new_state}}, _old_state) do
timer = Process.send_after(self(), :checkup, @checkup_time)
{:noreply, %{new_state | timer: timer, checkup: nil}}
end
@ -79,7 +79,7 @@ defmodule Farmbot.FarmEvent.Manager do
{:noreply, %{state | timer: timer, checkup: nil}}
end
def async_checkup(manager, state) do
def async_checkup(_manager, state) do
now = get_now()
alias Farmbot.Repo.FarmEvent
# maybe_farm_event_log "Rebuilding calendar."

View file

@ -52,7 +52,7 @@ defmodule Farmbot.Logger.Console do
:ok
end
defp maybe_log(%Farmbot.Log{module: module} = log) do
defp maybe_log(%Farmbot.Log{module: _module} = log) do
# should_log = List.first(Module.split(module)) == "Farmbot"
# if should_log do
# credo:disable-for-next-line