Skip to content

Commit 7050791

Browse files
avargitster
authored andcommitted
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 fc7e73d (t4013: improve diff-post-processor logic, 2020-08-21) and The last use of $_z40 was removed in 7a868c5 (t5562: use $ZERO_OID, 2019-12-21), but it was then needlessly refactored to be hash-agnostic in 192b517 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2963395 commit 7050791

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

t/test-lib.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ SQ=\'
534534
# when case-folding filenames
535535
u200c=$(printf '\342\200\214')
536536

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
538538

539539
# Each test should start with something like this, after copyright notices:
540540
#
@@ -1423,10 +1423,9 @@ then
14231423
fi
14241424

14251425
# Convenience
1426-
# A regexp to match 5, 35 and 40 hexdigits
1426+
# A regexp to match 5 and 35 hexdigits
14271427
_x05='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
14281428
_x35="$_x05$_x05$_x05$_x05$_x05$_x05$_x05"
1429-
_x40="$_x35$_x05"
14301429

14311430
test_oid_init
14321431

@@ -1435,7 +1434,6 @@ OID_REGEX=$(echo $ZERO_OID | sed -e 's/0/[0-9a-f]/g')
14351434
OIDPATH_REGEX=$(test_oid_to_path $ZERO_OID | sed -e 's/0/[0-9a-f]/g')
14361435
EMPTY_TREE=$(test_oid empty_tree)
14371436
EMPTY_BLOB=$(test_oid empty_blob)
1438-
_z40=$ZERO_OID
14391437

14401438
# Provide an implementation of the 'yes' utility; the upper bound
14411439
# limit is there to help Windows that cannot stop this loop from

0 commit comments

Comments
 (0)