webkitpdf.vala
authorAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 08:00:56 +0000 (16:00 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 08:00:56 +0000 (16:00 +0800)
webkitpdf.vala.c
BrowserWindow.vala.c

webkitpdf.vala

index 0c226c2..32d5278 100644 (file)
@@ -43,16 +43,7 @@ public class webkitpdf {
                 throw new OptionError.BAD_VALUE("missing pdf or png filename");
             }
             
-            if (webkitpdf.opt_target_pdf != null) {
-                       print("got pdf\n");
-               }
-            if (webkitpdf.opt_target_png != null) {
-                       print("got png\n");
-               }
-            if ((webkitpdf.opt_target_pdf == null) && (webkitpdf.opt_target_png != null)) {
-                throw new OptionError.BAD_VALUE("missing pdf file path");
-            }
-            print("got here?\n");
+
                } catch (OptionError e) {
                        stdout.printf ("error: %s\n", e.message);
                        stdout.printf ("Run '%s --help' to see a full list of available command line options.\n %s",