Skip to content

Commit fd343d5

Browse files
committed
don't include the config callback yet
1 parent 6c4042d commit fd343d5

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

lib/fun_with_flags.ex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,4 @@ defmodule FunWithFlags do
88
"""
99

1010
use FunWithFlags.EntryPoint
11-
12-
@impl true
13-
def config do
14-
{:ok, []}
15-
end
1611
end

lib/fun_with_flags/entry_point.ex

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ defmodule FunWithFlags.EntryPoint do
4343
@doc false
4444
defmacro __using__(opts) do
4545
quote bind_quoted: [opts: opts] do
46-
@behaviour FunWithFlags.EntryPoint
47-
4846
alias FunWithFlags.{Config, Flag, Gate}
4947

5048
@store FunWithFlags.Config.store_module_determined_at_compile_time()
@@ -543,12 +541,4 @@ defmodule FunWithFlags.EntryPoint do
543541

544542
end
545543
end
546-
547-
@doc """
548-
An entry point must define this callback to provide its configuration.
549-
550-
This function is supposed to retrieve any runtime config (e.g. ENV vars) and
551-
return it as a keyword list.
552-
"""
553-
@callback config() :: {:ok, Keyword.t()}
554544
end

0 commit comments

Comments
 (0)