Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Remove some dead code.



details:   https://anonhg.NetBSD.org/src/rev/c23b150789c7
branches:  trunk
changeset: 749009:c23b150789c7
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Nov 12 20:38:35 2009 +0000

description:
Remove some dead code.

diffstat:

 sys/dev/ic/com.c |  34 ++--------------------------------
 1 files changed, 2 insertions(+), 32 deletions(-)

diffs (76 lines):

diff -r 3cfe57c857dd -r c23b150789c7 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Thu Nov 12 20:37:44 2009 +0000
+++ b/sys/dev/ic/com.c  Thu Nov 12 20:38:35 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.289 2009/11/12 20:37:09 dyoung Exp $ */
+/* $NetBSD: com.c,v 1.290 2009/11/12 20:38:35 dyoung Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.289 2009/11/12 20:37:09 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.290 2009/11/12 20:38:35 dyoung Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -177,11 +177,6 @@
 
 int    cominit(struct com_regs *, int, int, int, tcflag_t);
 
-#if 0
-static int     comcngetc_detached(dev_t);
-static void    comcnputc_detached(dev_t, int);
-#endif
-
 static int comcnreattach(void);
 
 int    comcngetc(dev_t);
@@ -209,13 +204,6 @@
 
 static struct comcons_info comcons_info;
 
-#if 0
-static struct consdev comcons_detached = {
-       NULL, NULL, comcngetc_detached, comcnputc_detached, comcnpollc,
-       NULL, NULL, NULL, NODEV, CN_NULL
-};
-#endif
-
 /*
  * Following are all routines needed for COM to act as console
  */
@@ -632,19 +620,6 @@
                com_enable_debugport(sc);
 }
 
-#if 0
-static int
-comcngetc_detached(dev_t dev)
-{
-       return 0;
-}
-
-static void
-comcnputc_detached(dev_t dev, int c)
-{
-}
-#endif
-
 int
 com_detach(device_t self, int flags)
 {
@@ -2421,11 +2396,6 @@
 {
        struct com_softc *sc = device_private(self);
 
-#if 0
-       if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE) && cn_tab == &comcons)
-               cn_tab = &comcons_suspend;
-#endif
-
        CSR_WRITE_1(&sc->sc_regs, COM_REG_IER, 0);
        (void)CSR_READ_1(&sc->sc_regs, COM_REG_IIR);
 



Home | Main Index | Thread Index | Old Index