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/3424f8f4ded9
branches:  trunk
changeset: 446649:3424f8f4ded9
user:      maya <maya%NetBSD.org@localhost>
date:      Thu Dec 13 09:07:53 2018 +0000

description:
Remove unused code.

diffstat:

 usr.bin/telnet/ring.c |  24 ++----------------------
 usr.bin/telnet/ring.h |   6 +-----
 2 files changed, 3 insertions(+), 27 deletions(-)

diffs (65 lines):

diff -r 6c9f060241e2 -r 3424f8f4ded9 usr.bin/telnet/ring.c
--- a/usr.bin/telnet/ring.c     Thu Dec 13 08:45:29 2018 +0000
+++ b/usr.bin/telnet/ring.c     Thu Dec 13 09:07:53 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ring.c,v 1.13 2003/08/07 11:16:10 agc Exp $    */
+/*     $NetBSD: ring.c,v 1.14 2018/12/13 09:07:53 maya Exp $   */
 
 /*
  * Copyright (c) 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)ring.c     8.2 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: ring.c,v 1.13 2003/08/07 11:16:10 agc Exp $");
+__RCSID("$NetBSD: ring.c,v 1.14 2018/12/13 09:07:53 maya Exp $");
 #endif
 #endif /* not lint */
 
@@ -284,26 +284,6 @@
     }
 }
 
-#ifdef notdef
-
-/*
- * Move data from the "consume" portion of the ring buffer
- */
-void
-ring_consume_data(Ring *ring, unsigned char *buffer, int count)
-{
-    int i;
-
-    while (count) {
-       i = MIN(count, ring_full_consecutive(ring));
-       memmove(buffer, ring->consume, i);
-       ring_consumed(ring, i);
-       count -= i;
-       buffer += i;
-    }
-}
-#endif
-
 #ifdef ENCRYPTION
 void
 ring_encrypt(Ring *ring, void (*encryptor)(unsigned char *, int))
diff -r 6c9f060241e2 -r 3424f8f4ded9 usr.bin/telnet/ring.h
--- a/usr.bin/telnet/ring.h     Thu Dec 13 08:45:29 2018 +0000
+++ b/usr.bin/telnet/ring.h     Thu Dec 13 09:07:53 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ring.h,v 1.10 2003/08/07 11:16:10 agc Exp $    */
+/*     $NetBSD: ring.h,v 1.11 2018/12/13 09:07:53 maya Exp $   */
 
 /*
  * Copyright (c) 1988, 1993
@@ -75,10 +75,6 @@
 /* Data movement routines */
 extern void
        ring_supply_data(Ring *ring, unsigned char *buffer, int count);
-#ifdef notdef
-extern void
-       ring_consume_data(Ring *ring, unsigned char *buffer, int count);
-#endif
 
 /* Buffer state transition routines */
 extern void



Home | Main Index | Thread Index | Old Index