summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);