notebook: Drop an unused variable

This commit is contained in:
Matthias Clasen 2023-04-27 13:41:16 +02:00
parent 051b463c9a
commit cc682a96d9

View File

@ -4902,7 +4902,6 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook,
else /* !show_arrows */ else /* !show_arrows */
{ {
GtkOrientation tab_expand_orientation; GtkOrientation tab_expand_orientation;
int c = 0;
*n = 0; *n = 0;
if (notebook->tab_pos == GTK_POS_TOP || notebook->tab_pos == GTK_POS_BOTTOM) if (notebook->tab_pos == GTK_POS_TOP || notebook->tab_pos == GTK_POS_BOTTOM)
@ -4927,8 +4926,6 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook,
!gtk_widget_get_visible (page->child)) !gtk_widget_get_visible (page->child))
continue; continue;
c++;
if (page->expand || if (page->expand ||
(gtk_widget_compute_expand (page->tab_label, tab_expand_orientation))) (gtk_widget_compute_expand (page->tab_label, tab_expand_orientation)))
(*n)++; (*n)++;