Module Name:    src
Committed By:   riastradh
Date:           Mon Oct  3 19:58:48 UTC 2022

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

Log Message:
com(4): Nix dead code.

This was introduced in rev. 1.292, whose commit message was...
`Delete dead code.'  I guess December 6, 2009 was Opposite Day?


To generate a diff of this commit:
cvs rdiff -u -r1.375 -r1.376 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.375 src/sys/dev/ic/com.c:1.376
--- src/sys/dev/ic/com.c:1.375	Mon Oct  3 19:57:41 2022
+++ src/sys/dev/ic/com.c	Mon Oct  3 19:58:48 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.375 2022/10/03 19:57:41 riastradh Exp $ */
+/* $NetBSD: com.c,v 1.376 2022/10/03 19:58:48 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.375 2022/10/03 19:57:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.376 2022/10/03 19:58:48 riastradh Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -899,19 +899,6 @@ com_config(struct com_softc *sc)
 		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)
 {
@@ -2838,11 +2825,6 @@ com_suspend(device_t self, const pmf_qua
 {
 	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