Browse Source

Remove deadcode

rexim 4 years ago
parent
commit
b520d4cf16
1 changed files with 2 additions and 2 deletions
  1. 2 2
      nobuild2.h

+ 2 - 2
nobuild2.h

@@ -765,7 +765,7 @@ void chain_run_sync(Chain chain)
     Fd *fdprev = NULL;
     Fd *fdprev = NULL;
 
 
     if (chain.input_filepath) {
     if (chain.input_filepath) {
-        fdin = fd_open_for_read(chain.input_filepath);//open(chain.input_filepath, O_RDONLY);
+        fdin = fd_open_for_read(chain.input_filepath);
         if (fdin < 0) {
         if (fdin < 0) {
             PANIC("could not open file %s: %s", chain.input_filepath, strerror(errno));
             PANIC("could not open file %s: %s", chain.input_filepath, strerror(errno));
         }
         }
@@ -791,7 +791,7 @@ void chain_run_sync(Chain chain)
         Fd *fdnext = NULL;
         Fd *fdnext = NULL;
 
 
         if (chain.output_filepath) {
         if (chain.output_filepath) {
-            fdout = fd_open_for_write(chain.output_filepath); //open(chain.output_filepath, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+            fdout = fd_open_for_write(chain.output_filepath);
             if (fdout < 0) {
             if (fdout < 0) {
                 PANIC("could not open file %s: %s",
                 PANIC("could not open file %s: %s",
                       chain.output_filepath,
                       chain.output_filepath,