PDFBOX-4836: remove constructors with a ScratchFile as those aren't needed any more when reading a pdf

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1881871 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java b/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
index da417e8..bf7c7de 100644
--- a/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
+++ b/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
@@ -41,7 +41,6 @@
 import org.apache.pdfbox.cos.COSStream;
 import org.apache.pdfbox.cos.COSString;
 import org.apache.pdfbox.io.RandomAccessReadBufferedFile;
-import org.apache.pdfbox.io.ScratchFile;
 import org.apache.pdfbox.pdfparser.PDFParser;
 import org.apache.pdfbox.pdfparser.XrefTrailerResolver.XRefType;
 import org.apache.pdfbox.pdmodel.PDDocument;
@@ -106,18 +105,6 @@
     /**
      * Constructor.
      *
-     * @param file
-     * @param scratch
-     * @throws IOException if there is a reading error.
-     */
-    public PreflightParser(File file, ScratchFile scratch) throws IOException
-    {
-        super(new RandomAccessReadBufferedFile(file), scratch);
-    }
-
-    /**
-     * Constructor.
-     *
      * @param filename
      * @throws IOException if there is a reading error.
      */
@@ -127,18 +114,6 @@
     }
 
     /**
-     * Constructor.
-     *
-     * @param filename
-     * @param scratch
-     * @throws IOException if there is a reading error.
-     */
-    public PreflightParser(String filename, ScratchFile scratch) throws IOException
-    {
-        this(new File(filename), scratch);
-    }
-
-    /**
      * Add a validation error to the ValidationResult.
      * 
      * @param error the validation error to be added