diff options
author | Sankarasivasubramanian Pasupathilingam <psankar@src.gnome.org> | 2008-10-06 17:48:34 +0800 |
---|---|---|
committer | Sankarasivasubramanian Pasupathilingam <psankar@src.gnome.org> | 2008-10-06 17:48:34 +0800 |
commit | 994707897e322dbb2b6ce63637c122d8249602a9 (patch) | |
tree | 70285d5d057dbe198c03b71870cba274bcbb0250 /e-util/e-util.c | |
parent | 52a508fef194deeac055b12c2a8d201f3a4543e5 (diff) | |
download | gsoc2013-evolution-994707897e322dbb2b6ce63637c122d8249602a9.tar gsoc2013-evolution-994707897e322dbb2b6ce63637c122d8249602a9.tar.gz gsoc2013-evolution-994707897e322dbb2b6ce63637c122d8249602a9.tar.bz2 gsoc2013-evolution-994707897e322dbb2b6ce63637c122d8249602a9.tar.lz gsoc2013-evolution-994707897e322dbb2b6ce63637c122d8249602a9.tar.xz gsoc2013-evolution-994707897e322dbb2b6ce63637c122d8249602a9.tar.zst gsoc2013-evolution-994707897e322dbb2b6ce63637c122d8249602a9.zip |
Remove obsolete functions.
svn path=/trunk/; revision=36567
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r-- | e-util/e-util.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index 97cd6265a6..2ce78ea0e2 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -420,45 +420,6 @@ do_format_number_as_float (gdouble number) } } -gchar * -e_format_number_float (gfloat number) -{ - gfloat int_part; - gint fraction; - struct lconv *locality; - gchar *str_intpart; - gchar *decimal_point; - gchar *str_fraction; - gchar *value; - - locality = localeconv(); - - int_part = floor (number); - str_intpart = do_format_number_as_float ((gdouble) int_part); - - if (!strcmp(locality->mon_decimal_point, "")) { - decimal_point = "."; - } - else { - decimal_point = locality->mon_decimal_point; - } - - fraction = (gint) ((number - int_part) * 100); - - if (fraction == 0) { - str_fraction = g_strdup ("00"); - } else { - str_fraction = g_strdup_printf ("%02d", fraction); - } - - value = g_strconcat (str_intpart, decimal_point, str_fraction, NULL); - - g_free (str_intpart); - g_free (str_fraction); - - return value; -} - /* Perform a binary search for key in base which has nmemb elements of size bytes each. The comparisons are done by (*compare)(). */ void |