From: nicm Date: Wed, 11 Jan 2023 12:47:04 +0000 (+0000) Subject: Remove rasops_isgray, this is no longer used. From Crystal Kolipe X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4012b040ac00f2e70439d9b22a8000b57e2b12f9;p=openbsd Remove rasops_isgray, this is no longer used. From Crystal Kolipe kolipe.c at exoticsilicon dot com. ok miod --- diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index 70fb41758c0..3de0d00df1a 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops.c,v 1.66 2020/07/23 09:17:03 tim Exp $ */ +/* $OpenBSD: rasops.c,v 1.67 2023/01/11 12:47:04 nicm Exp $ */ /* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */ /*- @@ -122,14 +122,6 @@ const u_char rasops_cmap[256 * 3] = { #undef _C }; -/* True if color is gray */ -const u_char rasops_isgray[16] = { - 1, 0, 0, 0, - 0, 0, 0, 1, - 1, 0, 0, 0, - 0, 0, 0, 1 -}; - struct rasops_screen { LIST_ENTRY(rasops_screen) rs_next; struct rasops_info *rs_ri; @@ -570,12 +562,6 @@ rasops_pack_cattr(void *cookie, int fg, int bg, int flg, uint32_t *attr) flg = ((flg & WSATTR_UNDERLINE) ? 1 : 0); - if (rasops_isgray[fg]) - flg |= 2; - - if (rasops_isgray[bg]) - flg |= 4; - *attr = (bg << 16) | (fg << 24) | flg; return (0); }