aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2010-11-14 22:42:12 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-11-14 15:21:47 -0800
commit72a1af4d91a36516e9c7642368ab35fba28cc25c (patch)
tree0c5b9bf61c9306e2cc19a4cbda458c8e3f7397a8
parent6ceea8ba9b06c89cd0fd8342f9248d5ca2ff7563 (diff)
downloaduemacs-72a1af4d91a36516e9c7642368ab35fba28cc25c.tar.gz
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>
-rw-r--r--display.c22
-rw-r--r--file.c4
2 files changed, 0 insertions, 26 deletions
diff --git a/display.c b/display.c
index 317980e..a122be5 100644
--- a/display.c
+++ b/display.c
@@ -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
diff --git a/file.c b/file.c
index 43c0f2c..0a52cb0 100644
--- a/file.c
+++ b/file.c
@@ -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;
}