git-sh-i18n: remove unused eval_ngettext()

The "eval_ngettext()" function has been orphaned since its last user was removed in a74b35081c5 (rebase: drop support for `--preserve-merges`, 2021-09-07). See b8fc9e43a7d (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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Oct 21, 2021 at 20:37 UTC e29099a2d17f7fdacc400503ef8a0303b560609a
1 file changed -12
git-sh-i18n.sh
-12
@@ -51,12 +51,6 @@ gettext_without_eval_gettext)
51 )
52 }
53
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 - }
54 ;;
55 *)
56 gettext () {
@@ -70,12 +64,6 @@ gettext_without_eval_gettext)
64 )
65 }
66
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 - }
67 ;;
68 esac
69