Skip to content

Commit

Permalink
tidy: remove dead code from goom/drawmethods.h.
Browse files Browse the repository at this point in the history
The clang-tidy "dead stores" checker pointed out two places that a
variable is set but the value is never used.  Remove these two code
fragments.
  • Loading branch information
linuxdude42 committed Mar 26, 2019
1 parent 4af3fbb commit f7cd2ec
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mythtv/libs/libmythtv/visualisations/goom/drawmethods.h
Expand Up @@ -127,9 +127,6 @@ static void draw_line (int *data, int x1, int y1, int x2, int y2, int col, int s
yy = y >> 16;
p = &(data[(screenx * yy) + x]);
DRAWMETHOD;
if (yy < (screeny - 1)) {
p += screeny;
}
y += dy;
}
}
Expand Down Expand Up @@ -159,9 +156,6 @@ static void draw_line (int *data, int x1, int y1, int x2, int y2, int col, int s
yy = y >> 16;
p = &(data[(screenx * yy) + x]);
DRAWMETHOD;
if (yy < (screeny - 1)) {
p += screeny;
}
y += dy;
}
return;
Expand Down

0 comments on commit f7cd2ec

Please sign in to comment.