diff options
author | Nelson Benítez León <nbenitezl+gnome@gmail.com> | 2017-06-04 11:20:19 +0500 |
---|---|---|
committer | Nelson Benítez León <nbenitezl+gnome@gmail.com> | 2017-06-05 17:47:55 +0500 |
commit | 0973ac416ac63baf0d0c728fd99b108ce70ae421 (patch) | |
tree | f2e3ef7d0b6105dd951fcef7482523715fe3450b /gtk/gtktextdisplay.c | |
parent | 5e69fe17aebbd3c845ac12a00778080d8865f940 (diff) | |
download | gtk+-0973ac416ac63baf0d0c728fd99b108ce70ae421.tar.gz |
gtktextdisplay: remove unused code
In render_para() function, which is called for every text line that
needs to be drawn.
https://bugzilla.gnome.org/show_bug.cgi?id=783397
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r-- | gtk/gtktextdisplay.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c index 580b5786d1..c6e28e4cec 100644 --- a/gtk/gtktextdisplay.c +++ b/gtk/gtktextdisplay.c @@ -572,21 +572,12 @@ render_para (GtkTextRenderer *text_renderer, PangoLayout *layout = line_display->layout; int byte_offset = 0; PangoLayoutIter *iter; - PangoRectangle layout_logical; int screen_width; GdkRGBA selection; gboolean first = TRUE; GtkCssNode *selection_node; iter = pango_layout_get_iter (layout); - - pango_layout_iter_get_layout_extents (iter, NULL, &layout_logical); - - /* Adjust for margins */ - - layout_logical.x += line_display->x_offset * PANGO_SCALE; - layout_logical.y += line_display->top_margin * PANGO_SCALE; - screen_width = line_display->total_width; context = gtk_widget_get_style_context (text_renderer->widget); |