summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-10-28 20:34:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-10-28 20:34:59 -0400
commit518f59ce861967447a010f3ee572c06f9386ab00 (patch)
treebc3fdf41697f0b67f8fdfdbddc68dd3dd0260235
parent511ebfccfd6ca54611d90a5c0ab1f19c8e714422 (diff)
downloadpango-518f59ce861967447a010f3ee572c06f9386ab00.tar.gz
Drop an unused ItemProperties use
We don't use ItemProperties in pango_layout_line_index_to_x anymore, so no need to compute them either.
-rw-r--r--pango/pango-layout.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index db016614..c58495c4 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -1641,9 +1641,6 @@ pango_layout_line_index_to_x (PangoLayoutLine *line,
while (run_list)
{
PangoLayoutRun *run = run_list->data;
- ItemProperties properties;
-
- pango_layout_get_item_properties (run->item, &properties);
if (run->item->offset <= index && run->item->offset + run->item->length > index)
{