[librsvg] Remove unused rsvg_css_parse_time() function.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Remove unused rsvg_css_parse_time() function.
- Date: Thu, 23 Mar 2017 17:10:51 +0000 (UTC)
commit dc06dad7941024a877c0cfe9ebd307eeacf4142a
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 23 11:07:51 2017 -0600
Remove unused rsvg_css_parse_time() function.
rsvg-css.c | 27 ---------------------------
rsvg-css.h | 2 --
2 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/rsvg-css.c b/rsvg-css.c
index 46555a5..588d042 100644
--- a/rsvg-css.c
+++ b/rsvg-css.c
@@ -309,33 +309,6 @@ rsvg_css_parse_frequency (const char *str)
return f_hz;
}
-/*
- <time>: A time value is a <number> immediately followed by a time unit
- identifier. Time unit identifiers are:
-
- * ms: milliseconds
- * s: seconds
-
- Time values are used in CSS properties and may not be negative.
-*/
-double
-rsvg_css_parse_time (const char *str)
-{
- double ms;
- char *end_ptr;
-
- ms = g_ascii_strtod (str, &end_ptr);
-
- /* todo: error condition - figure out how to best represent it */
- if ((ms == -HUGE_VAL || ms == HUGE_VAL) && (ERANGE == errno))
- return 0.0;
-
- if (end_ptr && !strcmp (end_ptr, "s"))
- return ms * 1000.;
-
- return ms;
-}
-
PangoStyle
rsvg_css_parse_font_style (const char *str, gboolean * inherit)
{
diff --git a/rsvg-css.h b/rsvg-css.h
index a99e7db..56febeb 100644
--- a/rsvg-css.h
+++ b/rsvg-css.h
@@ -74,8 +74,6 @@ guint rsvg_css_parse_opacity (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);
-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]