Skip to content

Commit

Permalink
Remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuprog committed Nov 2, 2019
1 parent 442e440 commit a87e661
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ Add `i18n_helpers` for Elixir as a dependency in your `mix.exs` file:
```elixir
def deps do
[
{:i18n_helpers, "~> 0.7.0"}
{:i18n_helpers, "~> 0.7.1"}
]
end
```
Expand Down
8 changes: 1 addition & 7 deletions lib/ecto/translatable_fields.ex
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ defmodule I18nHelpers.Ecto.TranslatableFields do
The macro will add the given field name into the translatable fields list.
"""
defmacro translatable_field(field_name) when is_atom(field_name) do
defmacro translatable_field(field_name) do
quote do
fields = Module.get_attribute(__MODULE__, :struct_fields)

Expand All @@ -119,12 +119,6 @@ defmodule I18nHelpers.Ecto.TranslatableFields do
end
end

defmacro translatable_field({_function_name, _metadata, [field_name | _rest] = _arguments}) do
quote do
translatable_field(unquote(field_name))
end
end

@doc ~S"""
Defines a translatable `belongs_to` association.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule I18nHelpers.MixProject do
use Mix.Project

@version "0.7.0"
@version "0.7.1"

def project do
[
Expand Down

0 comments on commit a87e661

Please sign in to comment.