1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-14 16:46:04 -05:00

uemacs: Kill dead code

This patch kills #ifdef'd code from display.c and file.c.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Pekka Enberg 2010-11-14 22:42:12 +02:00 committed by Linus Torvalds
parent 6ceea8ba9b
commit 72a1af4d91
2 changed files with 0 additions and 26 deletions

View File

@ -763,16 +763,6 @@ static int scrolls(int inserts)
from = match;
to = target;
}
#if 0
{
char line[NLINE];
sprintf(line,
"scrolls: move the %d lines starting at %d to %d, first %d, scrolls %d",
count, from, to, first,
2 * count >= abs(from - to));
mlwrite(line);
}
#endif
if (2 * count < abs(from - to))
return FALSE;
scrscroll(from, to, count);
@ -1173,18 +1163,6 @@ static void modeline(struct window *wp)
++n;
}
#if 0
vtputc(lchar);
vtputc((wp->w_flag & WFCOLR) != 0 ? 'C' : lchar);
vtputc((wp->w_flag & WFMODE) != 0 ? 'M' : lchar);
vtputc((wp->w_flag & WFHARD) != 0 ? 'H' : lchar);
vtputc((wp->w_flag & WFEDIT) != 0 ? 'E' : lchar);
vtputc((wp->w_flag & WFMOVE) != 0 ? 'V' : lchar);
vtputc((wp->w_flag & WFFORCE) != 0 ? 'F' : lchar);
vtputc(lchar);
n += 8;
#endif
#if PKCODE
if (bp->b_fname[0] != 0 && strcmp(bp->b_bname, bp->b_fname) != 0)
#else

4
file.c
View File

@ -311,10 +311,6 @@ int readin(char *fname, int lockfl)
}
if (s == FIOERR || s == FIOFNF) /* False if error. */
return FALSE;
#if 0
if (s == ABORT)
return ABORT;
#endif
return TRUE;
}