]> git.ipfire.org Git - thirdparty/git.git/commit
cvsserver: remove unused escapeRefName function
authorOndřej Pohořelský <opohorel@redhat.com>
Mon, 26 May 2025 13:48:25 +0000 (13:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 May 2025 15:25:08 +0000 (08:25 -0700)
commit67cae845d21d3ca0dbdb51ecebb695b175fd1c8e
tree9bce042fde15f5219ef953261c8363b794afc3bc
parentf93ff170b93a1782659637824b25923245ac9dd1
cvsserver: remove unused escapeRefName function

Function 'escapeRefName' introduced in 51a7e6dbc9 has never been used.

Despite being dead code, changes in Perl 5.41.4 exposed precedence
warning within its logic, which then caused test failures in t9402 by
logging the warnings to stderr while parsing the code. The affected
tests are t9402.30, t9402.31, t9402.32 and t9402.34.

Remove this unused function to simplify the codebase and stop the
warnings and test failures. Its corresponding unescapeRefName function,
which remains in use, has had its comments updated.

Reported-by: Jitka Plesnikova <jplesnik@redhat.com>
Signed-off-by: Ondřej Pohořelský <opohorel@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsserver.perl