From 6b4523e1855bb1edbda39cbc8e0e34d8a721af83 Mon Sep 17 00:00:00 2001 From: Pompolic <pompolic@special-circumstanc.es> Date: Tue, 19 Oct 2021 20:58:41 +0200 Subject: [PATCH] Remove act_hdr_junk and act_header debug code --- pdf.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pdf.c b/pdf.c index f4132e7..78f284d 100644 --- a/pdf.c +++ b/pdf.c @@ -1979,23 +1979,6 @@ act_txtobj(const HParseResult *p, void *u) } -// DEBUG -HParsedToken * -act_start_junk(const HParseResult *p, void *u) -{ - return (HParsedToken *)p->ast; -} -HParsedToken * -act_header(const HParseResult *p, void *u) -{ - return (HParsedToken *)p->ast; -} -// DEBUG - - - - - /* * This continuation takes the text stream and saves it in the environment for further * processing, e.g. writing it out to a file with the same name as the pdf input filename @@ -2526,7 +2509,6 @@ init_parser(struct Env *aux) /* header */ H_RULE(version, SEQ(pdigit, IGN(period), digit)); - // H_ARULE(header, h_middle(LIT("%PDF-"), version, lws)); H_RULE(header, h_right(LIT("%PDF-"), version)); H_RULE(headercmt, SEQ(header, CHX(nl, VIOL(lws, "Header comment terminated with whitespace instead of EOL (severity=1)")))); -- GitLab