On Mon, May 29, 2017 at 11:09:06PM +0200, Frederic Cambus wrote:
> Hi tech@,
> 
> Here is a diff to remove the unused pcdisplay_mapchar_simple function
> in pcdisplay(4).
> 
> It has been unused since this code was imported from NetBSD.
> 
> Comments? OK?
> 

ok mlarkin

> Index: sys/dev/ic/pcdisplay_subr.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/pcdisplay_subr.c,v
> retrieving revision 1.11
> diff -u -p -r1.11 pcdisplay_subr.c
> --- sys/dev/ic/pcdisplay_subr.c       11 Apr 2011 19:11:01 -0000      1.11
> +++ sys/dev/ic/pcdisplay_subr.c       29 May 2017 20:56:31 -0000
> @@ -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)
>  {
> Index: sys/dev/ic/pcdisplayvar.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/pcdisplayvar.h,v
> retrieving revision 1.11
> diff -u -p -r1.11 pcdisplayvar.h
> --- sys/dev/ic/pcdisplayvar.h 28 Aug 2010 12:48:14 -0000      1.11
> +++ sys/dev/ic/pcdisplayvar.h 29 May 2017 20:56:31 -0000
> @@ -76,9 +76,6 @@ _pcdisplay_6845_write(struct pcdisplay_h
>  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;
> 

Reply via email to