From: Matthew Fernandez Date: Thu, 14 Oct 2021 03:03:09 +0000 (-0700) Subject: smyrna: remove unused 'frame_length' field X-Git-Tag: 2.49.3~4^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=168ea1d6c6239ff1bcee4e203dd2f307b00a929c;p=graphviz smyrna: remove unused 'frame_length' field --- diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index f0b7f57ad..918dd7766 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -617,7 +617,6 @@ typedef struct GTimer *timer3; int active_frame; int total_frames; - int frame_length; /*lately added */ int drawnodes; int drawedges; diff --git a/cmd/smyrna/topfisheyeview.c b/cmd/smyrna/topfisheyeview.c index 01182ccd2..93e022ffd 100644 --- a/cmd/smyrna/topfisheyeview.c +++ b/cmd/smyrna/topfisheyeview.c @@ -332,7 +332,7 @@ static int get_active_frame(topview * t) gdouble seconds; int fr; seconds = g_timer_elapsed(view->timer, µseconds); - fr = (int) (seconds / ((double) view->frame_length / (double) 1000)); + fr = (int)(seconds * 1000.0); if (fr < view->total_frames) { if (fr == view->active_frame) diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 5c77e13e8..872580ae5 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -393,7 +393,6 @@ void init_viewport(ViewInfo * view) g_timer_stop(view->timer); view->active_frame = 0; view->total_frames = 1500; - view->frame_length = 1; /*add a call back to the main() */ g_timeout_add_full((gint) G_PRIORITY_DEFAULT, (guint) 100, gl_main_expose, NULL, NULL);