struct term_state: remove duplicate .xy and unused .attr
authorH. Peter Anvin <hpa@zytor.com>
Tue, 20 Nov 2007 17:54:21 +0000 (09:54 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 20 Nov 2007 17:54:21 +0000 (09:54 -0800)
In struct term_state and its initialized instance default_state:

Remove duplicated initialization of .xy
Remove unused field .attr

com32/lib/sys/ansi.c
com32/lib/sys/ansi.h

index 27975dd..9212f92 100644 (file)
@@ -52,7 +52,6 @@ static const struct term_state default_state =
   .state = st_init,
   .pvt = 0,
   .nparms = 0,
-  .xy = { 0, 0 },
 };
 
 /* DEC VT graphics to codepage 437 table (characters 0x60-0x7F only) */
index 7ea3f83..5ac008e 100644 (file)
@@ -23,7 +23,6 @@ struct curxy {
 
 struct term_state {
   struct curxy xy;
-  int attr;                    /* Current display attribute */
   int cindex;                  /* SOH color index */
   int vtgraphics;              /* VT graphics on/off */
   int intensity;