summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-11-18 19:04:10 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-11-18 19:04:10 +0000
commitbdc38026cbdb0d72ad7fcfbad35bf42f8d7a67f7 (patch)
treeabb6be9a93cce1c7dae3716ed31a6fd2e9e545a1 /usr.bin/mg
parentf74f5e10bbfb9ce9c6d66b18145c58d63dddaf03 (diff)
Don't ifdef out. Delete it. That's what the attic is for.
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/random.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/usr.bin/mg/random.c b/usr.bin/mg/random.c
index 9a42f0b5919..25ba3a64d69 100644
--- a/usr.bin/mg/random.c
+++ b/usr.bin/mg/random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: random.c,v 1.13 2005/10/13 20:07:26 kjell Exp $ */
+/* $OpenBSD: random.c,v 1.14 2005/11/18 19:04:09 kjell Exp $ */
/* This file is in the public domain. */
@@ -164,12 +164,7 @@ openline(int f, int n)
}
/*
- * Insert a newline. [following "feature" not present in current version of
- * Gnu, and now disabled here too] If you are at the end of the line and the
- * next line is a blank line, just move into the blank line. This makes
- * "C-O" and "C-X C-O" work nicely, and reduces the amount of screen update
- * that has to be done. This would not be as critical if screen update were a
- * lot more efficient.
+ * Insert a newline.
*/
/* ARGSUSED */
int
@@ -183,14 +178,6 @@ newline(int f, int n)
while (n--) {
lp = curwp->w_dotp;
-#ifdef undef
- if (llength(lp) == curwp->w_doto &&
- lforw(lp) != curbp->b_linep &&
- llength(lforw(lp)) == 0) {
- if ((s = forwchar(FFRAND, 1)) != TRUE)
- return (s);
- } else
-#endif /* undef */
if ((s = lnewline()) != TRUE)
return (s);
}