diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-04-23 05:58:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-04-23 05:58:15 +0000 |
commit | d28363948d3e6d096f0df2d5658c7c2bb8c53f7b (patch) | |
tree | a4ebca465e2016a3bd190fc6bc34f0dc0570fce9 | |
parent | 075cbc40fe4ff60984ff875d5c6c415471778c3f (diff) |
delete a NOTDEF of unused code
-rw-r--r-- | usr.sbin/config/ukc.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.sbin/config/ukc.c b/usr.sbin/config/ukc.c index 3b4367f1c30..eb7aa5e7ff9 100644 --- a/usr.sbin/config/ukc.c +++ b/usr.sbin/config/ukc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukc.c,v 1.18 2011/10/02 22:20:50 edd Exp $ */ +/* $OpenBSD: ukc.c,v 1.19 2015/04/23 05:58:14 deraadt Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -180,9 +180,6 @@ init(void) struct cfdata *cd; short *ln; int *p; -#ifdef NOTDEF - struct winsize w; -#endif if ((cd = get_cfdata(0)) == NULL) /* get first item */ errx(1, "failed to get first cfdata"); @@ -216,25 +213,4 @@ init(void) if ((fd = open("/dev/tty", O_RDWR)) < 0) fd = 2; - -#ifdef NOTDEF - if (ioctl(fd, TIOCGWINSZ, &w) == 0) - printf("row %d col %d\n", w.ws_row, w.ws_col); - - if ((s = getenv("LINES")) != NULL) - sc_height = atoi(s); - else - sc_height = tgetnum("li"); - - if (sc_height <= 0) - sc_height = 24; - - if ((s = getenv("COLUMNS")) != NULL) - sc_width = atoi(s); - else - sc_width = tgetnum("co"); - - if (sc_width <= 0) - sc_width = 80; -#endif } |