From 55cf202ff35a5d5b1456f3ccdda5f2016a16de51 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Fri, 1 Nov 2024 07:37:22 +0000 Subject: [PATCH] PDFBOX-5894: remove deprecated, remove unneeded code git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1921733 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/pdfbox/pdmodel/fdf/FDFDocument.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFDocument.java b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFDocument.java index c84b84f6e89..1cf7894004c 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFDocument.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFDocument.java @@ -72,18 +72,6 @@ public FDFDocument() setCatalog(catalog); } - /** - * Constructor that uses an existing document. The COSDocument that is passed in must be valid. - * - * @param doc The COSDocument that this document wraps. - * @deprecated Use {@link #FDFDocument(COSDocument, RandomAccessRead) } - */ - @Deprecated - public FDFDocument(COSDocument doc) - { - this(doc, null); - } - /** * Constructor that uses an existing document. The COSDocument that is passed in must be valid. * @@ -150,7 +138,7 @@ public COSDocument getDocument() */ public FDFCatalog getCatalog() { - FDFCatalog retval = null; + FDFCatalog retval; COSDictionary trailer = document.getTrailer(); COSDictionary root = trailer.getCOSDictionary(COSName.ROOT); if (root == null)