[rhythmbox/deprecations: 12/13] remove some unused functions



commit b7c966afdc7b605938a80a282667542c3d59d7fb
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Jan 1 14:55:03 2020 +1000

    remove some unused functions

 doc/reference/rhythmbox-sections.txt |  2 --
 lib/rb-util.c                        | 32 --------------------------------
 lib/rb-util.h                        |  2 --
 3 files changed, 36 deletions(-)
---
diff --git a/doc/reference/rhythmbox-sections.txt b/doc/reference/rhythmbox-sections.txt
index 212189f40..7cc836c26 100644
--- a/doc/reference/rhythmbox-sections.txt
+++ b/doc/reference/rhythmbox-sections.txt
@@ -1021,8 +1021,6 @@ rb_false_function
 rb_null_function
 rb_copy_function
 rb_gvalue_compare
-rb_compare_gtimeval
-rb_safe_strcmp
 rb_make_time_string
 rb_make_duration_string
 rb_make_elapsed_time_string
diff --git a/lib/rb-util.c b/lib/rb-util.c
index 48dbffe8b..011edaac9 100644
--- a/lib/rb-util.c
+++ b/lib/rb-util.c
@@ -260,38 +260,6 @@ rb_gvalue_compare (GValue *a, GValue *b)
        return retval;
 }
 
-/**
- * rb_compare_gtimeval:
- * @a: left hand side
- * @b: right hand size
- *
- * Compares two #GTimeVal structures for sorting.
- *
- * Return value: -1 if @a < @b, 0 if @a == @b, 1 if @a > @b
- */
-int
-rb_compare_gtimeval (GTimeVal *a, GTimeVal *b)
-{
-       if (a->tv_sec == b->tv_sec)
-               /* It's quite unlikely that microseconds are equal,
-                * so just ignore that case, we don't need a lot
-                * of precision.
-                */
-               return a->tv_usec > b->tv_usec ? 1 : -1;
-       else if (a->tv_sec > b->tv_sec)
-               return 1;
-       else
-               return -1;
-}
-
-/* this is obsoleted by g_strcmp0, don't use it */
-int
-rb_safe_strcmp (const char *a,
-                const char *b)
-{
-       return (!a && !b) ? 0 : (a && !b) || (!a && b) ? 1 : strcmp (a, b);
-}
-
 /**
  * rb_is_main_thread:
  *
diff --git a/lib/rb-util.h b/lib/rb-util.h
index 68d3dd4aa..9b2f1b293 100644
--- a/lib/rb-util.h
+++ b/lib/rb-util.h
@@ -50,8 +50,6 @@ gpointer rb_copy_function (gpointer data);
 
 int rb_gvalue_compare (GValue *a, GValue *b);
 
-int rb_compare_gtimeval (GTimeVal *a, GTimeVal *b);
-int rb_safe_strcmp (const char *a, const char *b);
 char *rb_make_time_string (guint seconds);
 char *rb_make_duration_string (guint duration);
 char *rb_make_elapsed_time_string (guint elapsed, guint duration, gboolean show_remaining);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]