Skip to content

Commit e29099a

Browse files
avargitster
authored andcommitted
git-sh-i18n: remove unused eval_ngettext()
The "eval_ngettext()" function has been orphaned since its last user was removed in a74b350 (rebase: drop support for `--preserve-merges`, 2021-09-07). See b8fc9e4 (i18n: rebase-interactive: mark here-doc strings for translation, 2016-06-17) for the commit that added these eval_ngettext() wrappers. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9d530dc commit e29099a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

git-sh-i18n.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ gettext_without_eval_gettext)
5151
)
5252
}
5353

54-
eval_ngettext () {
55-
ngettext "$1" "$2" "$3" | (
56-
export PATH $(git sh-i18n--envsubst --variables "$2");
57-
git sh-i18n--envsubst "$2"
58-
)
59-
}
6054
;;
6155
*)
6256
gettext () {
@@ -70,12 +64,6 @@ gettext_without_eval_gettext)
7064
)
7165
}
7266

73-
eval_ngettext () {
74-
(test "$3" = 1 && printf "%s" "$1" || printf "%s" "$2") | (
75-
export PATH $(git sh-i18n--envsubst --variables "$2");
76-
git sh-i18n--envsubst "$2"
77-
)
78-
}
7967
;;
8068
esac
8169

0 commit comments

Comments
 (0)