t0040: remove unused test helpers
9a001381 (Fix tests under GETTEXT_POISON on parseopt, 2012-08-27) introduced check_i18n, but the helper was never used from the beginning. The same commit also introduced check_unknown_i18n to replace the helper check_unknown and changed all users of the latter to use the former, but failed to remove check_unknown itself. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
May 6, 2016 at 10:52 UTC
32d51d473f7a0a9f86b4d082fb4f9de78314a0bd
1 file changed
-24
t/t0040-parse-options.sh
-24
@@ -81,30 +81,6 @@ check() {
81
test_cmp expect output
82
}
83
84
-check_i18n() {
85
- what="$1" &&
86
- shift &&
87
- expect="$1" &&
88
- shift &&
89
- sed "s/^$what .*/$what $expect/" <expect.template >expect &&
90
- test-parse-options $* >output 2>output.err &&
91
- test_must_be_empty output.err &&
92
- test_i18ncmp expect output
93
-}
94
-
95
-check_unknown() {
96
- case "$1" in
97
- --*)
98
- echo error: unknown option \`${1#--}\' >expect ;;
99
- -*)
100
- echo error: unknown switch \`${1#-}\' >expect ;;
101
- esac &&
102
- cat expect.err >>expect &&
103
- test_must_fail test-parse-options $* >output 2>output.err &&
104
- test_must_be_empty output &&
105
- test_cmp expect output.err
106
-}
107
-
84
check_unknown_i18n() {
85
case "$1" in
86
--*)