[librsvg] Remove unused rsvg_css_parse_angle() function.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Remove unused rsvg_css_parse_angle() function.
- Date: Thu, 23 Mar 2017 17:10:46 +0000 (UTC)
commit 0584ecef87b05588efdfff2792c5966cfd4c0c79
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 23 11:07:01 2017 -0600
Remove unused rsvg_css_parse_angle() function.
rsvg-css.c | 34 ----------------------------------
rsvg-css.h | 2 --
2 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/rsvg-css.c b/rsvg-css.c
index 442c6c9..46555a5 100644
--- a/rsvg-css.c
+++ b/rsvg-css.c
@@ -281,40 +281,6 @@ rsvg_css_parse_opacity (const char *str)
}
/*
- <angle>: An angle value is a <number> optionally followed immediately with
- an angle unit identifier. Angle unit identifiers are:
-
- * deg: degrees
- * grad: grads
- * rad: radians
-
- For properties defined in [CSS2], an angle unit identifier must be provided.
- For SVG-specific attributes and properties, the angle unit identifier is
- optional. If not provided, the angle value is assumed to be in degrees.
-*/
-double
-rsvg_css_parse_angle (const char *str)
-{
- double degrees;
- char *end_ptr;
-
- degrees = g_ascii_strtod (str, &end_ptr);
-
- /* todo: error condition - figure out how to best represent it */
- if ((degrees == -HUGE_VAL || degrees == HUGE_VAL) && (ERANGE == errno))
- return 0.0;
-
- if (end_ptr) {
- if (!strcmp (end_ptr, "rad"))
- return degrees * 180. / G_PI;
- else if (!strcmp (end_ptr, "grad"))
- return degrees * 360. / 400.;
- }
-
- return degrees;
-}
-
-/*
<frequency>: Frequency values are used with aural properties. The normative
definition of frequency values can be found in [CSS2-AURAL]. A frequency
value is a <number> immediately followed by a frequency unit identifier.
diff --git a/rsvg-css.h b/rsvg-css.h
index c2b1175..a99e7db 100644
--- a/rsvg-css.h
+++ b/rsvg-css.h
@@ -72,8 +72,6 @@ int rsvg_css_parse_aspect_ratio (const char *str);
G_GNUC_INTERNAL
guint rsvg_css_parse_opacity (const char *str);
G_GNUC_INTERNAL
-double rsvg_css_parse_angle (const char *str);
-G_GNUC_INTERNAL
double rsvg_css_parse_frequency (const char *str);
G_GNUC_INTERNAL
double rsvg_css_parse_time (const char *str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]