[rhythmbox] audiocd: remove impl_try_playlist and just use rb_true_function



commit 24f2206863f80caa7bd4c3c0640756823dc7797b
Author: Jonathan Matthew <jonathan d14n org>
Date:   Tue Jun 2 20:44:23 2009 +1000

    audiocd: remove impl_try_playlist and just use rb_true_function
---
 plugins/audiocd/rb-audiocd-source.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/plugins/audiocd/rb-audiocd-source.c b/plugins/audiocd/rb-audiocd-source.c
index bbeea99..ef57800 100644
--- a/plugins/audiocd/rb-audiocd-source.c
+++ b/plugins/audiocd/rb-audiocd-source.c
@@ -66,7 +66,6 @@ static gboolean impl_uri_is_source (RBSource *source, const char *uri);
 
 static void impl_delete_thyself (RBSource *source);
 static GList* impl_get_ui_actions (RBSource *source);
-static gboolean impl_try_playlist (RBSource *source);
 
 static gpointer rb_audiocd_load_songs (RBAudioCdSource *source);
 static void rb_audiocd_load_metadata (RBAudioCdSource *source, RhythmDB *db);
@@ -111,7 +110,7 @@ rb_audiocd_source_class_init (RBAudioCdSourceClass *klass)
 	source_class->impl_delete_thyself = impl_delete_thyself;
 	source_class->impl_get_ui_actions = impl_get_ui_actions;
 	source_class->impl_uri_is_source = impl_uri_is_source;
-	source_class->impl_try_playlist = impl_try_playlist;
+	source_class->impl_try_playlist = (RBSourceFeatureFunc) rb_true_function;	/* shouldn't need this. */
 	source_class->impl_want_uri = impl_want_uri;
 
 	g_type_class_add_private (klass, sizeof (RBAudioCdSourcePrivate));
@@ -811,8 +810,3 @@ impl_uri_is_source (RBSource *source, const char *uri)
 	return FALSE;
 }
 
-static gboolean
-impl_try_playlist (RBSource *source)
-{
-	return TRUE;
-}



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