Browse Source

Removing unnecessary private method

Jhonny Mertz 8 years ago
parent
commit
c018ecd9c6
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/main/java/com/github/jhonnymertz/wkhtmltopdf/wrapper/Pdf.java

+ 1 - 6
src/main/java/com/github/jhonnymertz/wkhtmltopdf/wrapper/Pdf.java

@@ -80,13 +80,8 @@ public class Pdf {
     }
 
     public File saveAs(String path) throws IOException, InterruptedException {
-        return saveAs(path, getPDF());
-    }
-
-    private File saveAs(String path, byte[] document) throws IOException {
         File file = new File(path);
-        FileUtils.writeByteArrayToFile(file, document);
-
+        FileUtils.writeByteArrayToFile(file, getPDF());
         return file;
     }