libgimpwidgets: delete unused variable.

Checking the log, it looks like this code has not been touched since
2007, so whatever this various was used for, it's clearly not been used
for a long time.

Fixes warning:

> libgimpwidgets/gimpcairo-utils.c:80:16: warning: variable 'total_length' set but not used [-Wunused-but-set-variable]
This commit is contained in:
Jehan 2024-10-28 16:17:45 +01:00
parent b01b2e2683
commit a42142d5a0
1 changed files with 1 additions and 5 deletions

View File

@ -77,14 +77,10 @@ gimp_cairo_set_focus_line_pattern (cairo_t *cr,
*/
gint n_dashes = strlen ((const gchar *) dash_list);
gdouble *dashes = g_new (gdouble, n_dashes);
gdouble total_length = 0;
gint i;
for (i = 0; i < n_dashes; i++)
{
dashes[i] = dash_list[i];
total_length += dash_list[i];
}
dashes[i] = dash_list[i];
cairo_set_dash (cr, dashes, n_dashes, 0.5);