diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 6022888051..1fdc8aab53 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1809,7 +1809,6 @@ bool wxWindowDC::DoGetPartialTextExtents(const wxString& text, { pango_layout_iter_get_cluster_extents(iter, NULL, &pos); int position = PANGO_PIXELS(pos.x); - size_t curIndex = pango_layout_iter_get_index(iter); widths[i++] = position; } while (i < len)