shithub: Nail

Download patch

ref: f4d1412732c0d8670ab6e6a33aa7cc7cc8b3d5c2
parent: eb491d33f6608b948b3615e9ac2b93c8824a30bb
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Dec 27 11:12:35 EST 2020

mbox: remove dead code

we're not using the address pattern, we outsourced
that to the plumber.

--- a/mbox.c
+++ b/mbox.c
@@ -30,7 +30,6 @@
 char	*listfmt	= "%>48s\t<%f>";
 Mesg	dead = {.messageid="", .hash=42};
 
-Reprog	*addrpat;
 Reprog	*mesgpat;
 
 int	threadsort = 1;
@@ -1027,7 +1026,6 @@
 	if(argc == 1)
 		mailbox = argv[0];
 
-	addrpat = regcomp("[^ \t]*@[^ \t]*\\.[^ \t]*");
 	mesgpat = regcomp("([0-9]+)(/.*)?");
 	cwait = threadwaitchan();