[librsvg: 5/6] DrawingCtx: remove unused pango_context field
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 5/6] DrawingCtx: remove unused pango_context field
- Date: Sat, 28 Apr 2018 16:19:56 +0000 (UTC)
commit 7185817fd3c7e3f189c62575d000c7641fb834ea
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Apr 28 16:03:48 2018 +0200
DrawingCtx: remove unused pango_context field
librsvg/rsvg-base.c | 4 ----
librsvg/rsvg-private.h | 1 -
2 files changed, 5 deletions(-)
---
diff --git a/librsvg/rsvg-base.c b/librsvg/rsvg-base.c
index bd174b19..6b9b4c75 100644
--- a/librsvg/rsvg-base.c
+++ b/librsvg/rsvg-base.c
@@ -183,7 +183,6 @@ rsvg_drawing_ctx_new (cairo_t *cr, RsvgHandle *handle)
draw->dpi_y = handle->priv->dpi_y;
draw->vb.rect.width = data.em;
draw->vb.rect.height = data.ex;
- draw->pango_context = NULL;
draw->vb_stack = NULL;
draw->drawsub_stack = NULL;
draw->acquired_nodes = NULL;
@@ -227,9 +226,6 @@ rsvg_drawing_ctx_free (RsvgDrawingCtx * handle)
g_warn_if_fail (handle->acquired_nodes == NULL);
g_slist_free (handle->acquired_nodes);
- if (handle->pango_context != NULL)
- g_object_unref (handle->pango_context);
-
g_free (handle);
}
diff --git a/librsvg/rsvg-private.h b/librsvg/rsvg-private.h
index 42d04665..49afb65b 100644
--- a/librsvg/rsvg-private.h
+++ b/librsvg/rsvg-private.h
@@ -173,7 +173,6 @@ struct RsvgDrawingCtx {
RsvgState *state;
GError **error;
RsvgDefs *defs;
- PangoContext *pango_context;
double dpi_x, dpi_y;
RsvgViewBox vb;
GSList *vb_stack;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]