Skip to content

Commit

Permalink
Simplify macros import to reduce amount of generated content
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Aug 20, 2024
1 parent 1a74fc8 commit 903a466
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions lib/gettext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -622,34 +622,7 @@ defmodule Gettext do
quote do
Module.register_attribute(__MODULE__, :__gettext_backend__, persist: true)
@__gettext_backend__ unquote(backend)
import Gettext.Macros,
only: [
dpgettext_noop: 3,
dgettext_noop: 2,
pgettext_noop: 2,
gettext_noop: 1,
dpngettext_noop: 4,
dngettext_noop: 3,
pngettext_noop: 3,
ngettext_noop: 2,
dpgettext: 3,
dpgettext: 4,
dgettext: 2,
dgettext: 3,
pgettext: 2,
pgettext: 3,
gettext: 1,
gettext: 2,
dpngettext: 5,
dpngettext: 6,
dngettext: 4,
dngettext: 5,
pngettext: 4,
pngettext: 5,
ngettext: 3,
ngettext: 4,
gettext_comment: 1
]
import Gettext.Macros
end

_other ->
Expand Down

0 comments on commit 903a466

Please sign in to comment.