lib/DtTerm: Remove dead assignments, initializations and increments

This shouldn't change behavior (or even object code) at all because
those assignments are all without effect. Removing that code removes
noise which helps working with code analysis tools.
This commit is contained in:
Patrick Georgi
2024-01-03 22:52:43 +01:00
committed by Jon Trulson
parent a5b5eb0f80
commit c48ec3adff
19 changed files with 40 additions and 142 deletions

View File

@@ -624,12 +624,7 @@ _DtTermDeleteEnhancement
}
/*
** get a copy of the current enhancement
*/
fillEnh = enh[col];
/*
** move all of the enhancement blocks between col + width and and the
** move all of the enhancement blocks between col + width and the
** end of the line to col
*/
copyCount = WIDTH(line) - (col + width);
@@ -736,19 +731,19 @@ _DtTermSetEnhancement
switch (id)
{
case enhVideo:
enhState->video = (value &= VIDEO_MASK);
enhState->video = value & VIDEO_MASK;
break;
case enhField:
enhState->field = (value &= FIELD_MASK);
enhState->field = value & FIELD_MASK;
break;
case enhFgColor:
enhState->fgColor = (value &= COLOR_MASK);
enhState->fgColor = value & COLOR_MASK;
break;
case enhBgColor:
enhState->bgColor = (value &= COLOR_MASK);
enhState->bgColor = value & COLOR_MASK;
break;
case enhFont:
enhState->font = (value &= FONT_MASK);
enhState->font = value & FONT_MASK;
break;
default:
return(-1);