]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
codesearch: generate_cxx: drop unused variables
authorEric Wong <e@80x24.org>
Mon, 12 Feb 2024 21:28:04 +0000 (21:28 +0000)
committerEric Wong <e@80x24.org>
Wed, 14 Feb 2024 07:25:55 +0000 (07:25 +0000)
We are just using the odd ref+deref (`${\...}') syntax and
don't need to calculate line numbers ourselves, nowadays.

lib/PublicInbox/CodeSearch.pm

index 48697cdccd11c793ef66b57f9b91ea0f1a8969cb..1f95a7263ebb7c6abe5714d943edada7cfffc0b4 100644 (file)
@@ -101,7 +101,6 @@ sub qparse_new ($) {
 }
 
 sub generate_cxx () { # generates snippet for xap_helper.h
-       my ($line, $file) = (__LINE__ + 2, __FILE__);
        my $ret = <<EOM;
 # line ${\__LINE__} "${\__FILE__}"
 static NRP *code_nrp[${\scalar(@CODE_VMAP)}];