Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/telnet Remove unused code.



details:   https://anonhg.NetBSD.org/src/rev/e7f59f0134bf
branches:  trunk
changeset: 837632:e7f59f0134bf
user:      maya <maya%NetBSD.org@localhost>
date:      Thu Dec 13 05:22:14 2018 +0000

description:
Remove unused code.

diffstat:

 usr.bin/telnet/externs.h |   3 +--
 usr.bin/telnet/sys_bsd.c |  11 ++---------
 usr.bin/telnet/telnet.c  |  16 ++--------------
 usr.bin/telnet/types.h   |   9 +--------
 4 files changed, 6 insertions(+), 33 deletions(-)

diffs (109 lines):

diff -r 8ae29abc5e24 -r e7f59f0134bf usr.bin/telnet/externs.h
--- a/usr.bin/telnet/externs.h  Thu Dec 13 05:15:11 2018 +0000
+++ b/usr.bin/telnet/externs.h  Thu Dec 13 05:22:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: externs.h,v 1.40 2018/12/13 05:07:03 maya Exp $        */
+/*     $NetBSD: externs.h,v 1.41 2018/12/13 05:22:14 maya Exp $        */
 
 /*
  * Copyright (c) 1988, 1990, 1993
@@ -247,7 +247,6 @@
 void TerminalSaveState(void);
 cc_t *tcval(int);
 void TerminalDefaultChars(void);
-void TerminalRestoreState(void);
 void TerminalNewMode(int);
 void TerminalSpeeds(long *, long *);
 int TerminalWindowSize(long *, long *);
diff -r 8ae29abc5e24 -r e7f59f0134bf usr.bin/telnet/sys_bsd.c
--- a/usr.bin/telnet/sys_bsd.c  Thu Dec 13 05:15:11 2018 +0000
+++ b/usr.bin/telnet/sys_bsd.c  Thu Dec 13 05:22:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_bsd.c,v 1.35 2018/12/13 04:49:19 maya Exp $        */
+/*     $NetBSD: sys_bsd.c,v 1.36 2018/12/13 05:22:14 maya Exp $        */
 
 /*
  * Copyright (c) 1988, 1990, 1993
@@ -34,7 +34,7 @@
 #if 0
 from: static char sccsid[] = "@(#)sys_bsd.c    8.4 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: sys_bsd.c,v 1.35 2018/12/13 04:49:19 maya Exp $");
+__RCSID("$NetBSD: sys_bsd.c,v 1.36 2018/12/13 05:22:14 maya Exp $");
 #endif
 #endif /* not lint */
 
@@ -243,13 +243,6 @@
     memmove(new_tc.c_cc, old_tc.c_cc, sizeof(old_tc.c_cc));
 }
 
-#ifdef notdef
-void
-TerminalRestoreState(void)
-{
-}
-#endif
-
 /*
  * TerminalNewMode - set up terminal to a specific mode.
  *     MODE_ECHO: do local terminal echo
diff -r 8ae29abc5e24 -r e7f59f0134bf usr.bin/telnet/telnet.c
--- a/usr.bin/telnet/telnet.c   Thu Dec 13 05:15:11 2018 +0000
+++ b/usr.bin/telnet/telnet.c   Thu Dec 13 05:22:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: telnet.c,v 1.38 2018/12/13 04:49:19 maya Exp $ */
+/*     $NetBSD: telnet.c,v 1.39 2018/12/13 05:22:14 maya Exp $ */
 
 /*
  * Copyright (c) 1988, 1990, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)telnet.c   8.4 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: telnet.c,v 1.38 2018/12/13 04:49:19 maya Exp $");
+__RCSID("$NetBSD: telnet.c,v 1.39 2018/12/13 05:22:14 maya Exp $");
 #endif
 #endif /* not lint */
 
@@ -162,18 +162,6 @@
  */
 
 Clocks clocks;
-
-#ifdef notdef
-Modelist modelist[] = {
-       { "telnet command mode", COMMAND_LINE },
-       { "character-at-a-time mode", 0 },
-       { "character-at-a-time mode (local echo)", LOCAL_ECHO|LOCAL_CHARS },
-       { "line-by-line mode (remote echo)", LINE | LOCAL_CHARS },
-       { "line-by-line mode", LINE | LOCAL_ECHO | LOCAL_CHARS },
-       { "line-by-line mode (local echoing suppressed)", LINE | LOCAL_CHARS },
-       { "3270 mode", 0 },
-};
-#endif
 
 
 /*
diff -r 8ae29abc5e24 -r e7f59f0134bf usr.bin/telnet/types.h
--- a/usr.bin/telnet/types.h    Thu Dec 13 05:15:11 2018 +0000
+++ b/usr.bin/telnet/types.h    Thu Dec 13 05:22:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.6 2003/08/07 11:16:12 agc Exp $    */
+/*     $NetBSD: types.h,v 1.7 2018/12/13 05:22:14 maya Exp $   */
 
 /*
  * Copyright (c) 1988, 1993
@@ -32,13 +32,6 @@
  */
 
 typedef struct {
-    char *modedescriptions;
-    char modetype;
-} Modelist;
-
-extern Modelist modelist[];
-
-typedef struct {
     int
        system,                 /* what the current time is */
        echotoggle,             /* last time user entered echo character */



Home | Main Index | Thread Index | Old Index