From 5998db47316af2c9cd7dbe6f9d62420de1726d6d Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 14 Jul 2020 13:55:05 -0400 Subject: remove slow-path for non-tty stdout --- more.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/more.c b/more.c index d546b9b..1517c34 100644 --- a/more.c +++ b/more.c @@ -132,19 +132,6 @@ int more(const char *file) } } - if (global.tty == NULL) { - /* tty is never opened if stdout is not a tty */ - int blank = 0; - while (getline(&line, &nline, mf.f) != -1) { - /* if (!((global.flags & FLAG_S) && blank)) { */ - printf("%s", line); - /* } */ - blank = !strcmp(line, "\n"); - } - fclose(mf.f); - return 1; - } - refresh(&mf); while (mf.f) { int c = fgetc(global.tty); -- cgit v1.2.1