[librsvg] rsvg_css_parse_vbox(): Remove unused function



commit 8e25e05d2ef989bb0d6df6f8df4b3dd9843e8d31
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue May 30 08:26:21 2017 -0500

    rsvg_css_parse_vbox(): Remove unused function

 rsvg-css.c |   39 ---------------------------------------
 rsvg-css.h |    3 +--
 2 files changed, 1 insertions(+), 41 deletions(-)
---
diff --git a/rsvg-css.c b/rsvg-css.c
index 067768c..097472d 100644
--- a/rsvg-css.c
+++ b/rsvg-css.c
@@ -51,45 +51,6 @@
 #define SETINHERIT() G_STMT_START {if (inherit != NULL) *inherit = TRUE;} G_STMT_END
 #define UNSETINHERIT() G_STMT_START {if (inherit != NULL) *inherit = FALSE;} G_STMT_END
 
-/**
- * rsvg_css_parse_vbox:
- * @vbox: The CSS viewBox
- * @x : The X output
- * @y: The Y output
- * @w: The Width output
- * @h: The Height output
- *
- * Returns: 
- */
-RsvgViewBox
-rsvg_css_parse_vbox (const char *vbox)
-{
-    RsvgViewBox vb;
-    gdouble *list;
-    guint list_len;
-    vb.active = FALSE;
-
-    vb.rect.x = vb.rect.y = 0;
-    vb.rect.width = vb.rect.height = 0;
-
-    list = rsvg_css_parse_number_list (vbox, &list_len);
-
-    if (!(list && list_len))
-        return vb;
-    else if (list_len != 4) {
-        g_free (list);
-        return vb;
-    } else {
-        vb.rect.x = list[0];
-        vb.rect.y = list[1];
-        vb.rect.width = list[2];
-        vb.rect.height = list[3];
-        vb.active = TRUE;
-
-        g_free (list);
-        return vb;
-    }
-}
 
 /* Recursive evaluation of all parent elements regarding absolute font size */
 static double
diff --git a/rsvg-css.h b/rsvg-css.h
index 7c7400b..1c8beba 100644
--- a/rsvg-css.h
+++ b/rsvg-css.h
@@ -113,8 +113,7 @@ G_GNUC_INTERNAL
 PangoStretch rsvg_css_parse_font_stretch    (const char *str, gboolean * inherit);
 G_GNUC_INTERNAL
 const char  *rsvg_css_parse_font_family            (const char *str, gboolean * inherit);
-G_GNUC_INTERNAL
-RsvgViewBox      rsvg_css_parse_vbox           (const char *vbox);
+
 G_GNUC_INTERNAL
 void          rsvg_css_parse_number_optional_number    (const char *str, double *x, double *y);
 G_GNUC_INTERNAL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]