commit 8d578a0f6e56f76f569ab93fa4295b965ecc64cd from: Sven M. Hallberg date: Sat Jul 01 16:16:16 2023 UTC remove unused helper basename I think this must have been left over from an earlier refactoring of text_extract(). commit - 462a9a8013dec40e1ee710e23385a89e49bf1801 commit + 8d578a0f6e56f76f569ab93fa4295b965ecc64cd blob - bad0993416cbe5289eddec11426c1f0761fd56ad blob + cf1e6f9804cd2b2a5dd2b85b169307051e0b8e86 --- pdf.c +++ pdf.c @@ -2154,22 +2154,6 @@ act_txtstream(const HParseResult *p, void *u) } return (HParsedToken *)x; /* return the input unchanged */ -} - - -const char * -basename(const char *fn) -{ - const char *p; - - p = strrchr(fn, '/'); - if (p == NULL) /* no slash found */ - p = fn; - else - p++; /* skip the slash */ - - assert(*p != '\0'); /* not the empty string */ - return p; } /*