]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
xap_helper: drop unused `struct worker'
authorEric Wong <e@80x24.org>
Fri, 31 Oct 2025 02:45:01 +0000 (02:45 +0000)
committerEric Wong <e@80x24.org>
Sun, 2 Nov 2025 19:52:19 +0000 (19:52 +0000)
I never actually used this struct since the PID <=> worker
mappers is a simple array where O(n) lookups won't hurt due
to the small amount of workers.

lib/PublicInbox/xap_helper.h

index 69ce7c7d0b2a9d3095c41feb81d096800ac3f404..d582841c474ac8e2a369f3afa862224cddcf8aff 100644 (file)
@@ -202,11 +202,6 @@ struct req { // argv and pfxv point into global rbuf
        bool asc; // ascending sort
 };
 
-struct worker {
-       pid_t pid;
-       unsigned nr;
-};
-
 struct fbuf {
        FILE *fp;
        char *ptr;