diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-02-10 13:56:13 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-02-13 17:37:39 +0000 |
commit | b69119c1e2b31223c1c2f56962eddb765b60e78a (patch) | |
tree | 7ec34ecd94e7f561bab8e5a5e17012ce05c01f1a /dbus/dbus-sysdeps-util.c | |
parent | 7a33565d3f1723b24808c62d4f820ebf7e31e372 (diff) | |
download | dbus-b69119c1e2b31223c1c2f56962eddb765b60e78a.tar.gz |
_dbus_string_append_double, _dbus_string_parse_double: remove
They're unused, except by their own regression tests.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39759
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Lennart Poettering <lennart@poettering.net>
Diffstat (limited to 'dbus/dbus-sysdeps-util.c')
-rw-r--r-- | dbus/dbus-sysdeps-util.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/dbus/dbus-sysdeps-util.c b/dbus/dbus-sysdeps-util.c index 4bd9312e..4b3d16f2 100644 --- a/dbus/dbus-sysdeps-util.c +++ b/dbus/dbus-sysdeps-util.c @@ -131,10 +131,6 @@ check_path_absolute (const char *path, dbus_bool_t _dbus_sysdeps_test (void) { - DBusString str; - double val; - int pos; - #ifdef DBUS_WIN check_dirname ("foo\\bar", "foo"); check_dirname ("foo\\\\bar", "foo"); @@ -176,32 +172,6 @@ _dbus_sysdeps_test (void) check_dirname ("", "."); #endif - _dbus_string_init_const (&str, "3.5"); - if (!_dbus_string_parse_double (&str, - 0, &val, &pos)) - { - _dbus_warn ("Failed to parse double"); - exit (1); - } - if (ABS(3.5 - val) > 1e-6) - { - _dbus_warn ("Failed to parse 3.5 correctly, got: %f", val); - exit (1); - } - if (pos != 3) - { - _dbus_warn ("_dbus_string_parse_double of \"3.5\" returned wrong position %d", pos); - exit (1); - } - - _dbus_string_init_const (&str, "0xff"); - if (_dbus_string_parse_double (&str, - 0, &val, &pos)) - { - _dbus_warn ("Should not have parsed hex as double\n"); - exit (1); - } - #ifdef DBUS_WIN check_path_absolute ("c:/", TRUE); check_path_absolute ("c:/foo", TRUE); |