[librsvg] Remove unused rsvg_css_parse_frequency() function.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Remove unused rsvg_css_parse_frequency() function.
- Date: Thu, 23 Mar 2017 17:10:56 +0000 (UTC)
commit 9d0b8f48831088c8defc120be9d061721bc85cfe
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 23 11:08:45 2017 -0600
Remove unused rsvg_css_parse_frequency() function.
rsvg-css.c | 29 -----------------------------
rsvg-css.h | 2 --
2 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/rsvg-css.c b/rsvg-css.c
index 588d042..75338ab 100644
--- a/rsvg-css.c
+++ b/rsvg-css.c
@@ -280,35 +280,6 @@ rsvg_css_parse_opacity (const char *str)
return (guint) floor (opacity * 255. + 0.5);
}
-/*
- <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.
- Frequency unit identifiers are:
-
- * Hz: Hertz
- * kHz: kilo Hertz
-
- Frequency values may not be negative.
-*/
-double
-rsvg_css_parse_frequency (const char *str)
-{
- double f_hz;
- char *end_ptr;
-
- f_hz = g_ascii_strtod (str, &end_ptr);
-
- /* todo: error condition - figure out how to best represent it */
- if ((f_hz == -HUGE_VAL || f_hz == HUGE_VAL) && (ERANGE == errno))
- return 0.0;
-
- if (end_ptr && !strcmp (end_ptr, "kHz"))
- return f_hz * 1000.;
-
- return f_hz;
-}
-
PangoStyle
rsvg_css_parse_font_style (const char *str, gboolean * inherit)
{
diff --git a/rsvg-css.h b/rsvg-css.h
index 56febeb..b916c5b 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_frequency (const char *str);
-G_GNUC_INTERNAL
PangoStyle rsvg_css_parse_font_style (const char *str, gboolean * inherit);
G_GNUC_INTERNAL
PangoVariant rsvg_css_parse_font_variant (const char *str, gboolean * inherit);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]