multiprogress.c (clear_progress): Don't check for output errors.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 25 Mar 2022 01:31:51 +0000 (01:31 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 25 Mar 2022 18:51:48 +0000 (18:51 +0000)
Nobody's watching to see if we found any.  Indeed, we might as well not
return anything at all.  So, err, don't.

multiprogress.c

index 3318415..450f7f1 100644 (file)
@@ -408,8 +408,8 @@ void progress_set_bgcolour(const struct progress_ttyinfo *tty, int colour)
 #endif
 
 #define CLRF_ALL 1u
-static int clear_progress(struct progress_state *progress,
-                         struct progress_render_state *render, unsigned f)
+static void clear_progress(struct progress_state *progress,
+                          struct progress_render_state *render, unsigned f)
 {
   const struct progress_ttyinfo *tty = &progress->tty;
   unsigned ndel, nleave;
@@ -436,8 +436,6 @@ static int clear_progress(struct progress_state *progress,
     }
   }
   progress->last_lines = 0;
-  if (ferror(tty->fp)) return (-1);
-  return (0);
 }
 
 int progress_clear(struct progress_state *progress)