[pango/no-shape-attrs: 2/4] Drop an unused ItemProperties use
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/no-shape-attrs: 2/4] Drop an unused ItemProperties use
- Date: Tue, 29 Oct 2019 02:04:38 +0000 (UTC)
commit 518f59ce861967447a010f3ee572c06f9386ab00
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 28 20:34:59 2019 -0400
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.
pango/pango-layout.c | 3 ---
1 file changed, 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]