Skip to content

Commit

Permalink
no more unit_scaling warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob committed Mar 28, 2019
1 parent 1d8fb0e commit 65614f6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/benchee/formatters/console.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ defmodule Benchee.Formatters.Console do
@impl true
@spec format(Suite.t(), map) :: [any]
def format(%Suite{scenarios: scenarios, configuration: config}, options \\ %{}) do
if Map.has_key?(options, :unit_scaling), do: warn_unit_scaling()

config =
config
|> Map.take([:unit_scaling, :title])
Expand Down Expand Up @@ -118,12 +116,6 @@ defmodule Benchee.Formatters.Console do
_ -> {:error, "Unknown Error"}
end

defp warn_unit_scaling do
IO.puts(
"unit_scaling is now a top level configuration option, avoid passing it as a formatter option."
)
end

defp generate_output(scenarios, config, input) do
[
suite_header(input, config)
Expand Down

0 comments on commit 65614f6

Please sign in to comment.