clock: Remove unused static variable in clock.c

`struct Tm tms` was set but never referenced; noticed
in a compiler warning.  Remove it.

Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
Dan Cross 2020-01-15 14:15:31 +00:00 committed by Dan Cross
parent a9b462061c
commit 0ac4bfee32

View file

@ -25,7 +25,6 @@ redraw(Image *screen)
static int rad;
int i;
int anghr, angmin;
static Tm tms;
static Tm ntms;
ntm = time(0);
@ -36,7 +35,6 @@ redraw(Image *screen)
anghr = 90-(ntms.hour*5 + ntms.min/12)*6;
angmin = 90-ntms.min*6;
tm = ntm;
tms = ntms;
r = screen->r;
c = divpt(addpt(r.min, r.max), 2);
rad = Dx(r) < Dy(r) ? Dx(r) : Dy(r);