test-lib: remove unused $_x40 and $_z40 variables
These two have fallen out of use with the SHA-256 migration. The last use of $_x40 was removed in fc7e73d7ef (t4013: improve diff-post-processor logic, 2020-08-21) and The last use of $_z40 was removed in 7a868c51c2 (t5562: use $ZERO_OID, 2019-12-21), but it was then needlessly refactored to be hash-agnostic in 192b517589 (t: use hash-specific lookup tables to define test constants, 2020-02-22). We can just remove it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Sep 11, 2021 at 13:17 UTC
705079112669c05c7ce5dee38ee8d7f075b8b3cf
1 file changed
+2
-4
t/test-lib.sh
+2
-4
@@ -534,7 +534,7 @@ SQ=\'
534
# when case-folding filenames
535
u200c=$(printf '\342\200\214')
536
537
-export _x05 _x35 _x40 _z40 LF u200c EMPTY_TREE EMPTY_BLOB ZERO_OID OID_REGEX
537
+export _x05 _x35 LF u200c EMPTY_TREE EMPTY_BLOB ZERO_OID OID_REGEX
538
539
# Each test should start with something like this, after copyright notices:
540
#
@@ -1423,10 +1423,9 @@ then
1423
fi
1424
1425
# Convenience
1426
-# A regexp to match 5, 35 and 40 hexdigits
1426
+# A regexp to match 5 and 35 hexdigits
1427
_x05='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
1428
_x35="$_x05$_x05$_x05$_x05$_x05$_x05$_x05"
1429
-_x40="$_x35$_x05"
1429
1430
test_oid_init
1431
@@ -1435,7 +1434,6 @@ OID_REGEX=$(echo $ZERO_OID | sed -e 's/0/[0-9a-f]/g')
1434
OIDPATH_REGEX=$(test_oid_to_path $ZERO_OID | sed -e 's/0/[0-9a-f]/g')
1435
EMPTY_TREE=$(test_oid empty_tree)
1436
EMPTY_BLOB=$(test_oid empty_blob)
1438
-_z40=$ZERO_OID
1437
1438
# Provide an implementation of the 'yes' utility; the upper bound
1439
# limit is there to help Windows that cannot stop this loop from