about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2024-02-12 21:28:04 +0000
committerEric Wong <e@80x24.org>2024-02-14 07:25:55 +0000
commit8f0c9c28121daad5b9441e51aa19e42d67b0e08b (patch)
tree81a90afcfdac0c70972848cb30516b076cd54b9f
parentb76dff9fbc78f1fcbe1da91d35171f09b937d506 (diff)
downloadpublic-inbox-8f0c9c28121daad5b9441e51aa19e42d67b0e08b.tar.gz
We are just using the odd ref+deref (`${\...}') syntax and
don't need to calculate line numbers ourselves, nowadays.
-rw-r--r--lib/PublicInbox/CodeSearch.pm1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/PublicInbox/CodeSearch.pm b/lib/PublicInbox/CodeSearch.pm
index 48697cdc..1f95a726 100644
--- a/lib/PublicInbox/CodeSearch.pm
+++ b/lib/PublicInbox/CodeSearch.pm
@@ -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)}];