From 512de3c2ead8ba1a54f5b7d4e4fd9050854ccc78 Mon Sep 17 00:00:00 2001
From: "Sven M. Hallberg" <pesco@khjk.org>
Date: Thu, 30 Mar 2023 16:38:58 +0000
Subject: [PATCH] remove a comment

I cannot tell what this refers to. The (nonexistent) else case of the
if statement above it is simply the case of the object number in question
not falling within this subsection.

Anyway, the function lookup_xref() is a low-level utility used during
parsing, not a place to produce error messages.
---
 pdf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/pdf.c b/pdf.c
index 144724b..afd483c 100644
--- a/pdf.c
+++ b/pdf.c
@@ -2704,7 +2704,6 @@ lookup_xref(struct Env *aux, size_t nr, size_t gen)
 
 			if (nr >= base && nr - base < n)
 				return H_INDEX(XREntry, ss, 1, nr - base);
-			// TODO: Generate a more meaningful error message -- p_viol, error ontology category
 		}
 	}
 
-- 
GitLab