Module Name:    src
Committed By:   dyoung
Date:           Thu Nov 12 20:38:35 UTC 2009

Modified Files:
        src/sys/dev/ic: com.c

Log Message:
Remove some dead code.


To generate a diff of this commit:
cvs rdiff -u -r1.289 -r1.290 src/sys/dev/ic/com.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/com.c
diff -u src/sys/dev/ic/com.c:1.289 src/sys/dev/ic/com.c:1.290
--- src/sys/dev/ic/com.c:1.289	Thu Nov 12 20:37:09 2009
+++ src/sys/dev/ic/com.c	Thu Nov 12 20:38:35 2009
@@ -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);
 

Reply via email to