summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-07-14 13:55:05 -0400
committerJakob Kaivo <jkk@ung.org>2020-07-14 13:55:05 -0400
commit5998db47316af2c9cd7dbe6f9d62420de1726d6d (patch)
treefe897e802c347dd007c205edf3bffa1b17de385d
parent75f16e09b7cdc6f7323bc095c4401c9e5baae065 (diff)
remove slow-path for non-tty stdout
-rw-r--r--more.c13
1 files changed, 0 insertions, 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);