From 2d0d1734211cb81201b4621dddbf9f864303df0e Mon Sep 17 00:00:00 2001 From: fcambus Date: Tue, 30 May 2017 08:24:56 +0000 Subject: [PATCH] Remove the unused pcdisplay_mapchar_simple function in pcdisplay(4). It has been unused since this code was imported from NetBSD. OK mlarkin@ --- sys/dev/ic/pcdisplay_subr.c | 13 +------------ sys/dev/ic/pcdisplayvar.h | 5 +---- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/sys/dev/ic/pcdisplay_subr.c b/sys/dev/ic/pcdisplay_subr.c index fe7f1189443..730f994692e 100644 --- a/sys/dev/ic/pcdisplay_subr.c +++ b/sys/dev/ic/pcdisplay_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcdisplay_subr.c,v 1.11 2011/04/11 19:11:01 matthew Exp $ */ +/* $OpenBSD: pcdisplay_subr.c,v 1.12 2017/05/30 08:24:56 fcambus Exp $ */ /* $NetBSD: pcdisplay_subr.c,v 1.16 2000/06/08 07:01:19 cgd Exp $ */ /* @@ -144,17 +144,6 @@ done: #endif /* PCDISPLAY_SOFTCURSOR */ } -#if 0 -unsigned int -pcdisplay_mapchar_simple(void *id, int uni) -{ - if (uni < 128) - return (uni); - - return (1); /* XXX ??? smiley */ -} -#endif - int pcdisplay_putchar(void *id, int row, int col, u_int c, long attr) { diff --git a/sys/dev/ic/pcdisplayvar.h b/sys/dev/ic/pcdisplayvar.h index 53ef95da600..c2d0b091163 100644 --- a/sys/dev/ic/pcdisplayvar.h +++ b/sys/dev/ic/pcdisplayvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcdisplayvar.h,v 1.11 2010/08/28 12:48:14 miod Exp $ */ +/* $OpenBSD: pcdisplayvar.h,v 1.12 2017/05/30 08:24:56 fcambus Exp $ */ /* $NetBSD: pcdisplayvar.h,v 1.8 2000/01/25 02:44:03 ad Exp $ */ /* @@ -76,9 +76,6 @@ _pcdisplay_6845_write(struct pcdisplay_handle *ph, int reg, u_int8_t val) void pcdisplay_cursor_init(struct pcdisplayscreen *, int); void pcdisplay_cursor_reset(struct pcdisplayscreen *); int pcdisplay_cursor(void *, int, int, int); -#if 0 -unsigned int pcdisplay_mapchar_simple(void *, int); -#endif int pcdisplay_mapchar(void *, int, unsigned int *); int pcdisplay_putchar(void *, int, int, u_int, long); struct wsdisplay_charcell; -- 2.20.1